summaryrefslogtreecommitdiff
path: root/send-pack.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-08-10 11:55:33 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-08-10 11:55:34 -0700
commit574a31b5b76b82b18e85825385d8594372152a8f (patch)
tree5a49cf8482dbd9f8d777bf0de1e350ed2268d266 /send-pack.c
parentMerge branch 'cp/completion-clone-recurse-submodules' into maint (diff)
parentuse strbuf_addstr() instead of strbuf_addf() with "%s" (diff)
downloadtgif-574a31b5b76b82b18e85825385d8594372152a8f.tar.xz
Merge branch 'rs/use-strbuf-addstr' into maint
* rs/use-strbuf-addstr: use strbuf_addstr() instead of strbuf_addf() with "%s" use strbuf_addstr() for adding constant strings to a strbuf
Diffstat (limited to 'send-pack.c')
-rw-r--r--send-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/send-pack.c b/send-pack.c
index 299d303848..1f85c56747 100644
--- a/send-pack.c
+++ b/send-pack.c
@@ -265,7 +265,7 @@ static int generate_push_cert(struct strbuf *req_buf,
struct strbuf cert = STRBUF_INIT;
int update_seen = 0;
- strbuf_addf(&cert, "certificate version 0.1\n");
+ strbuf_addstr(&cert, "certificate version 0.1\n");
strbuf_addf(&cert, "pusher %s ", signing_key);
datestamp(&cert);
strbuf_addch(&cert, '\n');