diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-09-26 16:09:14 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-26 16:09:14 -0700 |
commit | 85f34a929dc0f8c82f7167fe100d5264d7374876 (patch) | |
tree | b91491510bf7d8165bcfeb1f3a54bf4d36a05318 /builtin/submodule--helper.c | |
parent | 6fe1b1407ed91823daa5d487abe457ff37463349 (diff) | |
parent | a22ae753cb297cb8a1e3ae950ae4415190cd51d5 (diff) | |
download | git-85f34a929dc0f8c82f7167fe100d5264d7374876.tar.gz |
Merge branch 'rs/cocci'
Code cleanup.
* rs/cocci:
use strbuf_addstr() for adding constant strings to a strbuf, part 2
add coccicheck make target
contrib/coccinelle: fix semantic patch for oid_to_hex_r()
Diffstat (limited to 'builtin/submodule--helper.c')
-rw-r--r-- | builtin/submodule--helper.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 7b8ddfe6cf..432794b130 100644 --- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@ -860,8 +860,9 @@ static int update_clone_get_next_task(struct child_process *child, ce = suc->failed_clones[index]; if (!prepare_to_clone_next_submodule(ce, child, suc, err)) { suc->current ++; - strbuf_addf(err, "BUG: submodule considered for cloning," - "doesn't need cloning any more?\n"); + strbuf_addstr(err, "BUG: submodule considered for " + "cloning, doesn't need cloning " + "any more?\n"); return 0; } p = xmalloc(sizeof(*p)); |