Code

run_command(): respect GIT_TRACE
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Mon, 7 Jul 2008 13:41:34 +0000 (14:41 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jul 2008 20:16:33 +0000 (13:16 -0700)
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>
run-command.c

index 44100a749b09439121073e32e7a3143b54185d31..7068ec7e6d74af0cec233259b4b6e41a61ed5123 100644 (file)
@@ -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)