From: Tay Ray Chuan Date: Thu, 8 Apr 2010 02:15:18 +0000 (+0800) Subject: remote-curl: ensure that URLs have a trailing slash X-Git-Tag: v1.7.2-rc0~148^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d8fab07208abfbe7dc93aea97c5577cdd73266c5;hp=d8fab07208abfbe7dc93aea97c5577cdd73266c5;p=git.git 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 ---