Merge branch 'jk/git-connection-deadlock-fix' into maint-1.7.4
[git/git.git] / builtin / send-pack.c
index eb38ab4..fe07bb7 100644 (file)
@@ -344,6 +344,8 @@ int send_pack(struct send_pack_args *args,
                                ref->status = REF_STATUS_NONE;
                        if (args->stateless_rpc)
                                close(out);
+                       if (git_connection_is_socket(conn))
+                               shutdown(fd[0], SHUT_WR);
                        if (use_sideband)
                                finish_async(&demux);
                        return -1;