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>
This commit is contained in:
Johannes Schindelin 2008-07-07 14:41:34 +01:00 коммит произвёл Junio C Hamano
Родитель 2fe403e745
Коммит 8852f5d704
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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)