]> asedeno.scripts.mit.edu Git - git.git/blobdiff - connect.c
"git-fetch --tags $URL" should not overwrite existing tags
[git.git] / connect.c
index 66daa11a5737efd6ee2dbd6ff2ad0e1475fcba20..78448889da3f11fa28aacad17d3044a1c0df7e54 100644 (file)
--- 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);
 }