summaryrefslogtreecommitdiff
path: root/run-command.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-12-15 13:00:25 +0900
committerJunio C Hamano <gitster@pobox.com>2018-12-15 13:00:25 +0900
commitb21ebb671bb7dea8d342225f0d66c41f4e54d5ca (patch)
treed5e62fb29ab9d5a80a8d391dbc5b39971dfcce51 /run-command.c
parent85c26ae4bb73eaf46163e8ff48e85c81e52a6eec (diff)
parent0d0ac3826a3bbb9247e39e12623bbcfdd722f24c (diff)
Sync with Git 2.20.1
* maint: Git 2.20.1 .gitattributes: ensure t/oid-info/* has eol=lf t9902: 'send-email' test case requires PERL t4256: mark support files as LF-only parse-options: fix SunCC compiler warning help -a: handle aliases with long names gracefully help.h: fix coding style run-command: report exec failure
Diffstat (limited to 'run-command.c')
-rw-r--r--run-command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/run-command.c b/run-command.c
index c11ff80674..3db26b7b0e 100644
--- a/run-command.c
+++ b/run-command.c
@@ -728,6 +728,8 @@ fail_pipe:
if (prepare_cmd(&argv, cmd) < 0) {
failed_errno = errno;
cmd->pid = -1;
+ if (!cmd->silent_exec_failure)
+ error_errno("cannot run %s", cmd->argv[0]);
goto end_of_spawn;
}