diff --git a/git.c b/git.c index fd604b51fc..adbc188d86 100644 --- a/git.c +++ b/git.c @@ -288,7 +288,7 @@ static int run_command(struct cmd_struct *p, int argc, const char **argv) status = p->fn(argc, argv, prefix); if (status) - return status; + return status & 0xff; /* Somebody closed stdout? */ if (fstat(fileno(stdout), &st))