summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-06-16 16:19:43 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-06-16 16:19:43 -0700
commit4dd4a09eac9ecb27f051ad0f3447c205c5b50c8b (patch)
tree56699c1cae789f492ec4222839415c612d13654e /http.c
parentMerge branch 'hg/maint-attr-fix' into maint (diff)
parentremote-curl: ensure that URLs have a trailing slash (diff)
downloadtgif-4dd4a09eac9ecb27f051ad0f3447c205c5b50c8b.tar.xz
Merge branch 'rc/maint-curl-helper' into maint
* rc/maint-curl-helper: remote-curl: ensure that URLs have a trailing slash http: make end_url_with_slash() public t5541-http-push: add test for URLs with trailing slash Conflicts: remote-curl.c
Diffstat (limited to 'http.c')
-rw-r--r--http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.c b/http.c
index 4814217c64..364c333c6b 100644
--- a/http.c
+++ b/http.c
@@ -720,7 +720,7 @@ static inline int hex(int v)
return 'A' + v - 10;
}
-static void end_url_with_slash(struct strbuf *buf, const char *url)
+void end_url_with_slash(struct strbuf *buf, const char *url)
{
strbuf_addstr(buf, url);
if (buf->len && buf->buf[buf->len - 1] != '/')