Code

Support ERR in remote archive like in fetch/push
[git.git] / builtin / archive.c
index b14eaba1594bad060e0c881326368b9b2be3b158..6ec06d3e27b0069f6022c3d20576a3e25b7c8ff0 100644 (file)
@@ -49,6 +49,8 @@ static int run_remote_archiver(int argc, const char **argv,
        if (strcmp(buf, "ACK")) {
                if (len > 5 && !prefixcmp(buf, "NACK "))
                        die(_("git archive: NACK %s"), buf + 5);
+               if (len > 4 && !prefixcmp(buf, "ERR "))
+                       die(_("remote error: %s"), buf + 4);
                die(_("git archive: protocol error"));
        }