Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Loeliger <jdl@jdl.com>2006-06-07 07:58:41 +0400
committerJunio C Hamano <junkio@cox.net>2006-06-07 08:44:39 +0400
commit5ad312bedede83f63de5e69ef5e5ddff46484eae (patch)
tree93df7893857824c74f5cc28d43e1f489d12d796e /daemon.c
parent9941afc051d953ee5e8fd9a8a27c5cd659ef9552 (diff)
Refactor git_tcp_connect() functions a little.
Add client side sending of "\0host=%s\0" extended arg for git native protocol, backwards compatibly. Signed-off-by: Jon Loeliger <jdl@jdl.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/daemon.c b/daemon.c
index 776749e343..2f03f99d2d 100644
--- a/daemon.c
+++ b/daemon.c
@@ -267,12 +267,17 @@ static int upload(char *dir)
static int execute(void)
{
static char line[1000];
- int len;
+ int pktlen, len;
alarm(init_timeout ? init_timeout : timeout);
- len = packet_read_line(0, line, sizeof(line));
+ pktlen = packet_read_line(0, line, sizeof(line));
alarm(0);
+ len = strlen(line);
+ if (pktlen != len)
+ loginfo("Extended attributes (%d bytes) exist <%.*s>",
+ (int) pktlen - len,
+ (int) pktlen - len, line + len + 1);
if (len && line[len-1] == '\n')
line[--len] = 0;