diff options
Diffstat (limited to 'send-pack.c')
-rw-r--r-- | send-pack.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/send-pack.c b/send-pack.c index 9136450464..7b9829f165 100644 --- a/send-pack.c +++ b/send-pack.c @@ -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) { |