Thread (1 message) 1 message, 1 author, 2016-06-15

Re: git-push through git protocol

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:50

Linus Torvalds [off-list ref] writes:
quoted hunk
So Junio, I'd suggest adding this whether you then want to add the trivial 
code to allow pushing over git:// too or not. One less special case to 
worry about.

		Linus

---
diff --git a/connect.c b/connect.c
index 66daa11..7844888 100644
--- a/connect.c
+++ b/connect.c
@@ -529,7 +529,7 @@ static void git_tcp_connect(int fd[2], char *host)
 	int sockfd = git_tcp_connect_sock(host);
 
 	fd[0] = sockfd;
-	fd[1] = sockfd;
+	fd[1] = dup(sockfd);
 }
Yeah, I think this is very sensible thing to do.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help