diff options
author | Gerrit Pape <pape@smarden.org> | 2007-03-28 09:46:15 +0000 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-28 04:44:16 -0700 |
commit | 2afea3bcd2a2b3327d7e8bdabc9aebd6bef24c6e (patch) | |
tree | bcb30c2e8deda164d9caa391eb3b87e7dda603f5 /git-fetch.sh | |
parent | Add some basic tests of rev-list --pretty=format (diff) | |
download | tgif-2afea3bcd2a2b3327d7e8bdabc9aebd6bef24c6e.tar.xz |
http-fetch: don't use double-slash as directory separator in URLs
Please see http://bugs.debian.org/409887
http-fetch expected the URL given at the command line to have a trailing
slash anyway, and then added '/objects...' when requesting objects files
from the http server.
Now it doesn't require the trailing slash in <url> anymore, and strips
trailing slashes if given nonetheless.
Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-x | git-fetch.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-fetch.sh b/git-fetch.sh index 93349330d4..fd70696b74 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -248,7 +248,7 @@ fetch_per_ref () { expr "z$head" : "z$_x40\$" >/dev/null || die "No such ref $remote_name at $remote" echo >&2 "Fetching $remote_name from $remote using $proto" - git-http-fetch -v -a "$head" "$remote/" || exit + git-http-fetch -v -a "$head" "$remote" || exit ;; rsync://*) test -n "$shallow_depth" && |