From 0741147eabb9c915c43d23215b2cb5399fcd07bb Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Wed, 25 Aug 2021 22:15:34 +0000 Subject: [PATCH] git/serve: add a '\n' after HEAD Per the docs: the sender SHOULD include a LF, but the receiver MUST NOT complain if it is not present. I typoed away the SHOULD, and got missed the MUST NOT. thanks qbit. --- sys/src/cmd/git/serve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/git/serve.c b/sys/src/cmd/git/serve.c index 16eb34189..bf2e03770 100644 --- a/sys/src/cmd/git/serve.c +++ b/sys/src/cmd/git/serve.c @@ -34,7 +34,7 @@ showrefs(Conn *c) refs = nil; names = nil; if(resolveref(&head, "HEAD") != -1) - if(fmtpkt(c, "%H HEAD", head) == -1) + if(fmtpkt(c, "%H HEAD\n", head) == -1) goto error; if((nrefs = listrefs(&refs, &names)) == -1)