]> git.ipfire.org Git - thirdparty/git.git/blobdiff - send-pack.c
Merge branch 'nd/fetch-compact-update'
[thirdparty/git.git] / send-pack.c
index 9136450464b4c598e229a97419b5be6a55962e46..7b9829f165e7aff7abe804fb780cf7c9d88aaf73 100644 (file)
@@ -558,7 +558,9 @@ int send_pack(struct send_pack_args *args,
                in = demux.out;
        }
 
-       packet_reader_init(&reader, in, NULL, 0, PACKET_READ_CHOMP_NEWLINE);
+       packet_reader_init(&reader, in, NULL, 0,
+                          PACKET_READ_CHOMP_NEWLINE |
+                          PACKET_READ_DIE_ON_ERR_PACKET);
 
        if (need_pack_data && cmds_sent) {
                if (pack_objects(out, remote_refs, extra_have, args) < 0) {