summaryrefslogtreecommitdiff
path: root/git-clone.sh
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2007-03-28 09:46:15 +0000
committerJunio C Hamano <junkio@cox.net>2007-03-28 04:44:16 -0700
commit2afea3bcd2a2b3327d7e8bdabc9aebd6bef24c6e (patch)
treebcb30c2e8deda164d9caa391eb3b87e7dda603f5 /git-clone.sh
parentfa21b6023288d5ee0afa79021493a199b1c9bac5 (diff)
downloadgit-2afea3bcd2a2b3327d7e8bdabc9aebd6bef24c6e.tar.gz
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-xgit-clone.sh2
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" ||