run-command.c: print program 'git' when tracing git_cmd mode
[gitweb.git] / run-command.c
index eadba8cb0d510aab2357b0998286a0c0aac4c2b0..326c33e3cd4e42e4d9eb898e579701b307e4cfa4 100644 (file)
@@ -565,6 +565,8 @@ static void trace_run_command(const struct child_process *cp)
                return;
 
        strbuf_addf(&buf, "trace: run_command:");
+       if (cp->git_cmd)
+               strbuf_addstr(&buf, " git");
        sq_quote_argv_pretty(&buf, cp->argv);
 
        trace_printf("%s", buf.buf);