fast-import: add input format tests
[gitweb.git] / builtin / send-pack.c
index e6a3495e1ce8f3ae635fbf53419798ac510791d4..c1f6ddd927d61fbc2558ee3624224af405d918c3 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;