ref: 62abdae9c3475f4fe5971c3fc172e7ad374c42a3
parent: 4a7c2fb859127f27896a69f006dc17e9265d8178
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Mar 28 02:38:47 EDT 2026
git/get: correctly skip duplicated refs oops, continue only breaks the inner loop.
--- a/sys/src/cmd/git/get.c
+++ b/sys/src/cmd/git/get.c
@@ -302,10 +302,10 @@
fmtcaps(c, caps, sizeof(caps));
for(i = 0; i < nref; i++){if(hasheq(&have[i], &want[i]))
- continue;
+ goto skip;
for(j = 0; j < i; j++)
if(hasheq(&want[i], &want[j]))
- continue;
+ goto skip;
if((o = readobject(want[i])) != nil){unref(o);
continue;
@@ -314,6 +314,7 @@
sysfatal("could not send want for %H", want[i]);caps[0] = 0;
req = 1;
+skip:;
}
flushpkt(c);
--
⑨