diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2008-07-07 14:41:34 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-07 13:16:33 -0700 |
commit | 8852f5d704edc20896a84ca9107978c478a2941b (patch) | |
tree | a9660bf81e0980d9621485ee22bce8b8ba1fd49e | |
parent | 2fe403e7452bd6e1e8232445cf5434ce8f1af973 (diff) | |
download | git-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.c | 2 |
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) |