From facb0e757ac63f763bd942a2714f979538b99eb0 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Wed, 22 Dec 2021 00:48:09 +0000 Subject: git: revert c947bf808 -- it triggers a bug. We seem to have a botch in the protocol negotiation, where we leak some protocol packets into the packfile; this will need to be fixed before we put this change in. --- sys/src/cmd/git/fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src/cmd/git/fetch.c') diff --git a/sys/src/cmd/git/fetch.c b/sys/src/cmd/git/fetch.c index 447c71a7c..5951cfaf7 100644 --- a/sys/src/cmd/git/fetch.c +++ b/sys/src/cmd/git/fetch.c @@ -260,7 +260,7 @@ fetchpack(Conn *c) if(writepkt(c, buf, n) == -1) sysfatal("write: %r"); if(!req) - goto showrefs; + return 0; if(readphase(c) == -1) sysfatal("read: %r"); if((n = readpkt(c, buf, sizeof(buf))) == -1) -- cgit v1.2.3