]> git.ipfire.org Git - thirdparty/git.git/blobdiff - send-pack.c
send-pack: read "unpack" status even on pack-objects failure
[thirdparty/git.git] / send-pack.c
index 83c23aef6ac787a7870c86cb2fc311af1dcbb619..e152327394252c53cbaa16102b807e91b8fa7dcd 100644 (file)
@@ -562,6 +562,14 @@ int send_pack(struct send_pack_args *args,
                                close(out);
                        if (git_connection_is_socket(conn))
                                shutdown(fd[0], SHUT_WR);
+
+                       /*
+                        * Do not even bother with the return value; we know we
+                        * are failing, and just want the error() side effects.
+                        */
+                       if (status_report)
+                               receive_unpack_status(in);
+
                        if (use_sideband) {
                                close(demux.out);
                                finish_async(&demux);