aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2008-07-07 14:41:34 +0100
committerJunio C Hamano <gitster@pobox.com>2008-07-07 13:16:33 -0700
commit8852f5d704edc20896a84ca9107978c478a2941b (patch)
treea9660bf81e0980d9621485ee22bce8b8ba1fd49e
parent2fe403e7452bd6e1e8232445cf5434ce8f1af973 (diff)
downloadgit-8852f5d704edc20896a84ca9107978c478a2941b.tar.gz
git-8852f5d704edc20896a84ca9107978c478a2941b.tar.xz
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>
-rw-r--r--run-command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/run-command.c b/run-command.c
index 44100a749..7068ec7e6 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)