summaryrefslogtreecommitdiffstats
path: root/send-pack.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-08-08 23:48:41 +0200
committerJunio C Hamano <gitster@pobox.com>2016-08-08 23:48:41 +0200
commit940622bc8b33e085f62c5bcfe6183fe6f57888e2 (patch)
tree317b4e1134c92f488f28280d7441db43fb9e3454 /send-pack.c
parentMerge branch 'rs/st-mult' (diff)
parentuse strbuf_addstr() instead of strbuf_addf() with "%s" (diff)
downloadgit-940622bc8b33e085f62c5bcfe6183fe6f57888e2.tar.xz
git-940622bc8b33e085f62c5bcfe6183fe6f57888e2.zip
Merge branch 'rs/use-strbuf-addstr'
* 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 3a842ac2d1..90f2ac51a7 100644
--- a/send-pack.c
+++ b/send-pack.c
@@ -266,7 +266,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');