Skip to content

Commit

Permalink
run_command(): respect GIT_TRACE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Jul 7, 2008
1 parent 2fe403e commit 8852f5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run-command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8852f5d

Please sign in to comment.