shithub: riscv

Download patch

ref: 0741147eabb9c915c43d23215b2cb5399fcd07bb
parent: 9ca6ca345fa3b06dbf35e7808c35c0aaa7aa3bec
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Aug 25 18:15:34 EDT 2021

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.

--- a/sys/src/cmd/git/serve.c
+++ b/sys/src/cmd/git/serve.c
@@ -34,7 +34,7 @@
 	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)