shithub: plan9front

Download patch

ref: 54993a1f5bdc14ae702a8fe3142cfb3225d2c506
parent: a05d656054e22f216e022a239b90d8fc112396ba
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Aug 11 11:00:48 EDT 2021

git: fix non-interruptible temporary warning

harmless, but annoying.

--- a/sys/src/cmd/git/pack.c	Wed Aug 11 09:10:14 2021
+++ b/sys/src/cmd/git/pack.c	Wed Aug 11 11:00:48 2021
@@ -1676,7 +1676,8 @@
 	for(i = 0; i < nmeta; i++){
 		pct = showprogress((i*100)/nmeta, pct);
 		m = meta[i];
-		if((m->off = Boffset(bfd)) == -1)
+		m->off = Boffset(bfd);
+		if(m->off == -1)
 			goto error;
 		if((o = readobject(m->obj->hash)) == nil)
 			return -1;