summaryrefslogtreecommitdiff
path: root/builtin-receive-pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin-receive-pack.c')
-rw-r--r--builtin-receive-pack.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin-receive-pack.c b/builtin-receive-pack.c
index 1dcdb1a514..c85507b122 100644
--- a/builtin-receive-pack.c
+++ b/builtin-receive-pack.c
@@ -125,9 +125,7 @@ static const char post_receive_hook[] = "hooks/post-receive";
static int run_status(int code, const char *cmd_name)
{
- if (code < 0 && errno == ENOENT)
- return error("execute of %s failed", cmd_name);
- else if (code > 0)
+ if (code > 0)
error("%s exited with error code %d", cmd_name, code);
return code;
}