summaryrefslogtreecommitdiffstats
path: root/run-command.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2008-07-07 15:41:34 +0200
committerJunio C Hamano <gitster@pobox.com>2008-07-07 22:16:33 +0200
commit8852f5d704edc20896a84ca9107978c478a2941b (patch)
treea9660bf81e0980d9621485ee22bce8b8ba1fd49e /run-command.c
parentgit-svn.perl: workaround assertions in svn library 1.5.0 (diff)
downloadgit-8852f5d704edc20896a84ca9107978c478a2941b.tar.xz
git-8852f5d704edc20896a84ca9107978c478a2941b.zip
run_command(): respect GIT_TRACE
When GIT_TRACE is set, the user is most likely wanting to see an external command that is about to be executed. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r--run-command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/run-command.c b/run-command.c
index 44100a749b..7068ec7e6d 100644
--- a/run-command.c
+++ b/run-command.c
@@ -65,6 +65,8 @@ int start_command(struct child_process *cmd)
cmd->err = fderr[0];
}
+ trace_argv_printf(cmd->argv, "trace: run_command:");
+
cmd->pid = fork();
if (cmd->pid < 0) {
if (need_in)