git: 9front

Download patch

ref: 8a3465a93bfdddb4294e4fbc97b66771c928d540
parent: bf809631a2a7d33f408ba65daa0a8908ac198ab4
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Sep 14 12:13:58 EDT 2021

git: when stealing from the old packs list, keep what we stole.

we were missing a return after stealing, which killed the point
of doing the theft.

--- a/sys/src/cmd/git/pack.c
+++ b/sys/src/cmd/git/pack.c
@@ -194,6 +194,7 @@
 			pf->nidx = packf[i].nidx;
 			packf[i].idx = nil;
 			packf[i].pack = nil;
+			return 0;
 		}
 	}
 	if((ifd = open(buf, OREAD)) == -1)
--