diff options
author | Gerrit Pape <pape@smarden.org> | 2007-03-28 11:46:15 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-28 13:44:16 +0200 |
commit | 2afea3bcd2a2b3327d7e8bdabc9aebd6bef24c6e (patch) | |
tree | bcb30c2e8deda164d9caa391eb3b87e7dda603f5 /git-clone.sh | |
parent | Add some basic tests of rev-list --pretty=format (diff) | |
download | git-2afea3bcd2a2b3327d7e8bdabc9aebd6bef24c6e.tar.xz git-2afea3bcd2a2b3327d7e8bdabc9aebd6bef24c6e.zip |
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-clone.sh')
-rwxr-xr-x | git-clone.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-clone.sh b/git-clone.sh index 6ba477d1f4..513b574d13 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -60,7 +60,7 @@ Perhaps git-update-server-info needs to be run there?" else tname=$name fi - git-http-fetch $v -a -w "$tname" "$name" "$1/" || exit 1 + git-http-fetch $v -a -w "$tname" "$name" "$1" || exit 1 done <"$clone_tmp/refs" rm -fr "$clone_tmp" http_fetch "$1/HEAD" "$GIT_DIR/REMOTE_HEAD" || |