pkt-line: add functions to read/write flush terminated packet streams
[gitweb.git] / connect.c
index 722dc3fc546056be199f5d6a59c556833be58286..5330d9c1629607e335e056180794ab27b5b42277 100644 (file)
--- a/connect.c
+++ b/connect.c
@@ -730,7 +730,7 @@ struct child_process *git_connect(int fd[2], const char *url,
                 * Note: Do not add any other headers here!  Doing so
                 * will cause older git-daemon servers to crash.
                 */
-               packet_write(fd[1],
+               packet_write_fmt(fd[1],
                             "%s %s%chost=%s%c",
                             prog, path, 0,
                             target_host, 0);