aboutsummaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-12-14 07:36:10 -0800
committerJunio C Hamano <gitster@pobox.com>2010-12-14 07:36:10 -0800
commit6b090e1710dbdf3f2c9f46c7f089ce34399b35c5 (patch)
tree5103919c6668e99e22db598c0f57299e14c6393b /http.c
parent5b57076e5863602984ad089bab882730047e0fc3 (diff)
parent6f5185bd2d87dff587e4900aa022f6f9bd088f20 (diff)
downloadgit-6b090e1710dbdf3f2c9f46c7f089ce34399b35c5.tar.gz
git-6b090e1710dbdf3f2c9f46c7f089ce34399b35c5.tar.xz
Merge branch 'tc/http-urls-ends-with-slash' into maint
* tc/http-urls-ends-with-slash: http-fetch: rework url handling http-push: add trailing slash at arg-parse time, instead of later on http-push: check path length before using it http-push: Normalise directory names when pushing to some WebDAV servers http-backend: use end_url_with_slash() url: add str wrapper for end_url_with_slash() shift end_url_with_slash() from http.[ch] to url.[ch] t5550-http-fetch: add test for http-fetch t5550-http-fetch: add missing '&&'
Diffstat (limited to 'http.c')
-rw-r--r--http.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/http.c b/http.c
index f582b13b9..9e767723e 100644
--- a/http.c
+++ b/http.c
@@ -743,13 +743,6 @@ static inline int hex(int v)
return 'A' + v - 10;
}
-void end_url_with_slash(struct strbuf *buf, const char *url)
-{
- strbuf_addstr(buf, url);
- if (buf->len && buf->buf[buf->len - 1] != '/')
- strbuf_addstr(buf, "/");
-}
-
static char *quote_ref_url(const char *base, const char *ref)
{
struct strbuf buf = STRBUF_INIT;