Skip to contentSkip to conversation

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

DISCUSSION Simon Arlott 3 participants 3 messages Jun 15, 2016 – Aug 11, 2016

lore
Share & tools
lore
#0 lore raw
$ 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?

Signature · 1 line
Simon Arlott
#1 lore raw

Yes, this is a recent breakage. Thanks for bringing it up.

We need at least a fix like this in 'maint'.

daemon.c +5 -1
index ad84928..e66bb80 100644
@@ -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.
#2 lore raw
Quoted 3 lines · Junio C Hamano

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