From d8fab07208abfbe7dc93aea97c5577cdd73266c5 Mon Sep 17 00:00:00 2001 From: Tay Ray Chuan Date: Thu, 8 Apr 2010 10:15:18 +0800 Subject: remote-curl: ensure that URLs have a trailing slash Previously, we blindly assumed that URLs passed to the remote-curl helper did not end with a trailing slash. Use the convenience function end_url_with_slash() from http.[ch] to ensure that URLs have a trailing slash on invocation of the remote-curl helper, and use the URL as one with a trailing slash throughout. It is possible for users to pass a URL with a trailing slash to remote-curl, by, say, setting it in remote..url in their git config. The resulting requests have an empty path component (//) and may break implementations of the http git protocol. Signed-off-by: Tay Ray Chuan Signed-off-by: Junio C Hamano --- t/t5541-http-push.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/t5541-http-push.sh') diff --git a/t/t5541-http-push.sh b/t/t5541-http-push.sh index 7873d9429..f0c50d3d7 100755 --- a/t/t5541-http-push.sh +++ b/t/t5541-http-push.sh @@ -38,7 +38,7 @@ cat >exp <