summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-05-08 22:37:24 -0700
committerJunio C Hamano <gitster@pobox.com>2010-05-08 22:37:24 -0700
commit3cc9caadf738c3b2cf7aa46364be173751912a10 (patch)
tree6b59713c1a2b3e679e643476b2be1b50134d1bc2 /http.c
parentb7d0da858bb2f22c6ef3dbb20c1ded0302f4eaca (diff)
parentd8fab07208abfbe7dc93aea97c5577cdd73266c5 (diff)
downloadgit-3cc9caadf738c3b2cf7aa46364be173751912a10.tar.gz
Merge branch 'rc/maint-curl-helper'
* 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 51253e15a1..07a03fd79b 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] != '/')