shithub: riscv

Download patch

ref: 8f4842d3465e96d264f5c2f7fa2d61db871aae9f
parent: 390abbd1c75992f497b7528b4ffaf6a37d6fee22
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)