shithub: riscv

Download patch

ref: 54993a1f5bdc14ae702a8fe3142cfb3225d2c506
parent: a05d656054e22f216e022a239b90d8fc112396ba
author: Ori Bernstein <[email protected]>
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
+++ b/sys/src/cmd/git/pack.c
@@ -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;