tests: define GIT_TEST_SIDEBAND_ALL
[gitweb.git] / builtin / fetch-pack.c
index 63e69a58011a4d3c774cd3c81ae9f10e3a96efe6..85dbc2af87b9098ef3c37274a6fd3dd033f6cc5f 100644 (file)
@@ -217,7 +217,8 @@ int cmd_fetch_pack(int argc, const char **argv, const char *prefix)
 
        packet_reader_init(&reader, fd[0], NULL, 0,
                           PACKET_READ_CHOMP_NEWLINE |
-                          PACKET_READ_GENTLE_ON_EOF);
+                          PACKET_READ_GENTLE_ON_EOF |
+                          PACKET_READ_DIE_ON_ERR_PACKET);
 
        switch (discover_version(&reader)) {
        case protocol_v2: