From 908aaceb92c4fcc983c395350d4a188778ae500d Mon Sep 17 00:00:00 2001 From: Ilari Liusvaara Date: Mon, 3 Oct 2011 14:01:59 +0300 Subject: [PATCH] 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 --- builtin/archive.c | 2 ++ 1 file changed, 2 insertions(+) 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")); } -- 2.30.2