summaryrefslogtreecommitdiff
path: root/sys/src/cmd/git
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2021-09-14 16:13:58 +0000
committerOri Bernstein <ori@eigenstate.org>2021-09-14 16:13:58 +0000
commit8f4842d3465e96d264f5c2f7fa2d61db871aae9f (patch)
treeb193ba91a1d21019f187df7a5700b72cc41e7038 /sys/src/cmd/git
parent390abbd1c75992f497b7528b4ffaf6a37d6fee22 (diff)
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.
Diffstat (limited to 'sys/src/cmd/git')
-rw-r--r--sys/src/cmd/git/pack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/cmd/git/pack.c b/sys/src/cmd/git/pack.c
index 0d0a1eea4..6b05021d0 100644
--- a/sys/src/cmd/git/pack.c
+++ b/sys/src/cmd/git/pack.c
@@ -194,6 +194,7 @@ loadpack(Packf *pf, char *name)
pf->nidx = packf[i].nidx;
packf[i].idx = nil;
packf[i].pack = nil;
+ return 0;
}
}
if((ifd = open(buf, OREAD)) == -1)