Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-04-10 10:28:22 +0300
committerJunio C Hamano <gitster@pobox.com>2018-04-10 10:28:22 +0300
commite8cb62f1908aef40d6ea9265c480b5f597493327 (patch)
treedfc34aecc4466554ad5ecb69b5c69795382fada5
parentef06d74b4574b0da0928b4919c01da63fadcdca2 (diff)
parent248f66ed8e055f59ad38daed6b6606336ff63c58 (diff)
Merge branch 'nd/trace-with-env'
Code cleanup. * nd/trace-with-env: run-command: use strbuf_addstr() for adding a string to a strbuf
-rw-r--r--run-command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-command.c b/run-command.c
index a483d5904a..84899e423f 100644
--- a/run-command.c
+++ b/run-command.c
@@ -621,7 +621,7 @@ static void trace_run_command(const struct child_process *cp)
if (!trace_want(&trace_default_key))
return;
- strbuf_addf(&buf, "trace: run_command:");
+ strbuf_addstr(&buf, "trace: run_command:");
if (cp->dir) {
strbuf_addstr(&buf, " cd ");
sq_quote_buf_pretty(&buf, cp->dir);