summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2016-07-30 19:36:23 +0200
committerJunio C Hamano <gitster@pobox.com>2016-08-01 13:42:10 -0700
commit02962d36845b89145cd69f8bc65e015d78ae3434 (patch)
treef832d2d16e20f08f3f886ac7e6bc1b1bfb127524 /http-push.c
parent08df31eeccfe1576971ea4ba42570a424c3cfc41 (diff)
downloadgit-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 'http-push.c')
-rw-r--r--http-push.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c
index a092f0288b..d0b29ac982 100644
--- a/http-push.c
+++ b/http-push.c
@@ -1137,7 +1137,7 @@ static void remote_ls(const char *path, int flags,
ls.userData = userData;
ls.userFunc = userFunc;
- strbuf_addf(&out_buffer.buf, PROPFIND_ALL_REQUEST);
+ strbuf_addstr(&out_buffer.buf, PROPFIND_ALL_REQUEST);
dav_headers = curl_slist_append(dav_headers, "Depth: 1");
dav_headers = curl_slist_append(dav_headers, "Content-Type: text/xml");