aboutsummaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-08-10 11:55:33 -0700
committerJunio C Hamano <gitster@pobox.com>2016-08-10 11:55:34 -0700
commit574a31b5b76b82b18e85825385d8594372152a8f (patch)
tree5a49cf8482dbd9f8d777bf0de1e350ed2268d266 /http-push.c
parent9a54075c80e8fb30fe267ac57d5e7ef652bc901f (diff)
parentbc57b9c0cc5a123365a922fa1831177e3fd607ed (diff)
downloadgit-574a31b5b76b82b18e85825385d8594372152a8f.tar.gz
git-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 '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 a092f0288..d0b29ac98 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");