summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-12-12 21:49:52 -0800
committerJunio C Hamano <gitster@pobox.com>2010-12-12 21:49:52 -0800
commita0078dee90e9b6baf17fa22cdeaadd8bec49e725 (patch)
tree5e080b2401222e5839a1d4bc6e3abadc9800e936 /http.c
parent33935dca6db41f3d84f28abb66f94c1f2cc1974b (diff)
parent6f5185bd2d87dff587e4900aa022f6f9bd088f20 (diff)
downloadgit-a0078dee90e9b6baf17fa22cdeaadd8bec49e725.tar.gz
Merge branch 'tc/http-urls-ends-with-slash'
* 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 f582b13b91..9e767723ed 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;