code: plan9front

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	Mon Sep 13 19:56:26 2021
+++ b/sys/src/cmd/git/pack.c	Tue Sep 14 12:13:58 2021
@@ -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)