Skip to content

Commit 8852f5d

Browse files
dschogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2fe403e commit 8852f5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

run-command.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ int start_command(struct child_process *cmd)
6565
cmd->err = fderr[0];
6666
}
6767

68+
trace_argv_printf(cmd->argv, "trace: run_command:");
69+
6870
cmd->pid = fork();
6971
if (cmd->pid < 0) {
7072
if (need_in)

0 commit comments

Comments
 (0)