threads / discuss / 6022

git.kernel.org disconnects when git-1.3.3 tries to pull changes

Subject: git.kernel.org disconnects when git-1.3.3 tries to pull changes

## tl;dr

3 messages between Oct 24, 2006 and Oct 30, 2006.

replies: 2people: 3as markdown or json

Simon Arlott· Oct 24, 2006, 00:03 UTC · lore

$ git --version git version 1.3.3

$ git pull fatal: unexpected EOF Fetch failure: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/

[pid 14283] write(3, "0046git-upload-pack /pub/scm/linux/kernel/git/torvalds/linux-2.6.git/\n", 70) = 70
$ nc -vv git.kernel.org git
DNS fwd/rev mismatch: zeus-pub.kernel.org != zeus-pub1.kernel.org
DNS fwd/rev mismatch: zeus-pub.kernel.org != zeus-pub2.kernel.org
zeus-pub.kernel.org [204.152.191.5] 9418 (git) open
0046git-upload-pack /pub/scm/linux/kernel/git/torvalds/linux-2.6.git/
 sent 70, rcvd 0
$

<pasky> the difference seems to be just that newer git version sends a host information <pasky> anyway, this isn't supposed to happen <pasky> could you mail the mailing list, please?

-- 
Simon Arlott
Junio C Hamano· Oct 24, 2006, 01:23 UTC · re: Simon Arlott · lore

Re: git.kernel.org disconnects when git-1.3.3 tries to pull changes

Yes, this is a recent breakage.  Thanks for bringing it up.
We need at least a fix like this in 'maint'.
diff --git a/daemon.c b/daemon.c
index ad84928..e66bb80 100644
--- a/daemon.c
+++ b/daemon.c
@@ -450,6 +450,8 @@ void fill_in_extra_table_entries(struct 
 	 * Replace literal host with lowercase-ized hostname.
 	 */
 	hp = interp_table[INTERP_SLOT_HOST].value;
+	if (!hp)
+		return;
 	for ( ; *hp; hp++)
 		*hp = tolower(*hp);
 
@@ -544,8 +546,10 @@ #endif
 		loginfo("Extended attributes (%d bytes) exist <%.*s>",
 			(int) pktlen - len,
 			(int) pktlen - len, line + len + 1);
-	if (len && line[len-1] == '\n')
+	if (len && line[len-1] == '\n') {
 		line[--len] = 0;
+		pktlen--;
+	}
 
 	/*
 	 * Initialize the path interpolation table for this connection.
Jon Loeliger· Oct 30, 2006, 19:53 UTC · re: Junio C Hamano · lore

Re: git.kernel.org disconnects when git-1.3.3 tries to pull changes

On Mon, 2006-10-23 at 20:23, Junio C Hamano wrote:
> Yes, this is a recent breakage.  Thanks for bringing it up.
> 
> We need at least a fix like this in 'maint'.
Oooo...  Sorry.  That looks like my bad.
Thanks.
jdl

← back to recent threads