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.