summaryrefslogtreecommitdiff
path: root/connect.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-06-06 23:49:28 -0700
committerJunio C Hamano <gitster@pobox.com>2009-06-06 23:49:28 -0700
commit3ff7e178dc5c93e9d5b2738b1738a1a230a1b81a (patch)
tree390381a4758d234cd6ce6b33633eab511d1966fb /connect.c
parent6096d7598058d920485d206477f4383ba1a862cb (diff)
parent801a011dcf41f0415dee81f0500673e058bdee30 (diff)
downloadgit-3ff7e178dc5c93e9d5b2738b1738a1a230a1b81a.tar.gz
Merge branch 'maint'
* maint: Documentation: refer to gitworkflows(7) from tutorial and git(1) daemon: Strictly parse the "extra arg" part of the command
Diffstat (limited to 'connect.c')
-rw-r--r--connect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/connect.c b/connect.c
index f6b8ba6fec..958c831e43 100644
--- a/connect.c
+++ b/connect.c
@@ -579,7 +579,10 @@ struct child_process *git_connect(int fd[2], const char *url_orig,
git_tcp_connect(fd, host, flags);
/*
* Separate original protocol components prog and path
- * from extended components with a NUL byte.
+ * from extended host header with a NUL byte.
+ *
+ * Note: Do not add any other headers here! Doing so
+ * will cause older git-daemon servers to crash.
*/
packet_write(fd[1],
"%s %s%chost=%s%c",