summaryrefslogtreecommitdiff
path: root/send-pack.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2016-07-30 17:36:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-08-01 20:42:10 (GMT)
commit02962d36845b89145cd69f8bc65e015d78ae3434 (patch)
treef832d2d16e20f08f3f886ac7e6bc1b1bfb127524 /send-pack.c
parent08df31eeccfe1576971ea4ba42570a424c3cfc41 (diff)
downloadgit-02962d36845b89145cd69f8bc65e015d78ae3434.zip
git-02962d36845b89145cd69f8bc65e015d78ae3434.tar.gz
git-02962d36845b89145cd69f8bc65e015d78ae3434.tar.bz2
use strbuf_addstr() for adding constant strings to a strbuf
Replace uses of strbuf_addf() for adding strings with more lightweight strbuf_addstr() calls. In http-push.c it becomes easier to see what's going on without having to verfiy that the definition of PROPFIND_ALL_REQUEST doesn't contain any format specifiers. Signed-off-by: Rene Scharfe <l.s.r@web.de> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 37ee04e..45a2462 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');