From: Ori Bernstein Date: Wed, 25 Aug 2021 22:15:34 +0000 (+0000) Subject: git/serve: add a '\n' after HEAD X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=0741147eabb9c915c43d23215b2cb5399fcd07bb;p=plan9front.git 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. --- 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)