Merge branch 'nd/trace-with-env'
Code cleanup. * nd/trace-with-env: run-command: use strbuf_addstr() for adding a string to a strbuf
This commit is contained in:
commit
e8cb62f190
@ -621,7 +621,7 @@ static void trace_run_command(const struct child_process *cp)
|
|||||||
if (!trace_want(&trace_default_key))
|
if (!trace_want(&trace_default_key))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
strbuf_addf(&buf, "trace: run_command:");
|
strbuf_addstr(&buf, "trace: run_command:");
|
||||||
if (cp->dir) {
|
if (cp->dir) {
|
||||||
strbuf_addstr(&buf, " cd ");
|
strbuf_addstr(&buf, " cd ");
|
||||||
sq_quote_buf_pretty(&buf, cp->dir);
|
sq_quote_buf_pretty(&buf, cp->dir);
|
||||||
|
Loading…
Reference in New Issue
Block a user