]> git.ipfire.org Git - thirdparty/git.git/blobdiff - fetch-pack.c
fetch-pack: show clearer error message upon ERR
[thirdparty/git.git] / fetch-pack.c
index f12bfcdbb12c0bde9271ba45e5d8b6941439efc1..986b1efebca1853ff98ce71153dfd546d8778a23 100644 (file)
@@ -240,6 +240,8 @@ static enum ack_type get_ack(int fd, unsigned char *result_sha1)
                        return ACK;
                }
        }
+       if (skip_prefix(line, "ERR ", &arg))
+               die(_("remote error: %s"), arg);
        die(_("git fetch-pack: expected ACK/NAK, got '%s'"), line);
 }