summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
Diffstat (limited to 'git.c')
-rw-r--r--git.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/git.c b/git.c
index d223eab..03726ee 100644
--- a/git.c
+++ b/git.c
@@ -417,12 +417,8 @@ static void execv_dashed_external(const char **argv)
* OK to return. Otherwise, we just pass along the status code.
*/
status = run_command_v_opt(argv, 0);
- if (status != -ERR_RUN_COMMAND_EXEC) {
- if (status < 0)
- die("unable to run '%s'", argv[0]);
+ if (status >= 0 || errno != ENOENT)
exit(status);
- }
- errno = ENOENT; /* as if we called execvp */
argv[0] = tmp;