diff options
author | René Scharfe <l.s.r@web.de> | 2016-07-30 19:36:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-01 13:42:10 -0700 |
commit | 02962d36845b89145cd69f8bc65e015d78ae3434 (patch) | |
tree | f832d2d16e20f08f3f886ac7e6bc1b1bfb127524 /send-pack.c | |
parent | 08df31eeccfe1576971ea4ba42570a424c3cfc41 (diff) | |
download | git-02962d36845b89145cd69f8bc65e015d78ae3434.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/send-pack.c b/send-pack.c index 37ee04ea3b..45a2462708 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'); |