From: Ilari Liusvaara Date: Mon, 3 Oct 2011 11:01:59 +0000 (+0300) Subject: Support ERR in remote archive like in fetch/push X-Git-Tag: v1.7.7.1~7^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=908aaceb92c4fcc983c395350d4a188778ae500d;p=git.git Support ERR in remote archive like in fetch/push Make ERR as first packet of remote snapshot reply work like it does in fetch/push. Lets servers decline remote snapshot with message the same way as declining fetch/push with a message. Signed-off-by: Ilari Liusvaara Signed-off-by: Junio C Hamano --- diff --git a/builtin/archive.c b/builtin/archive.c index b14eaba15..6ec06d3e2 100644 --- a/builtin/archive.c +++ b/builtin/archive.c @@ -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")); }