summaryrefslogtreecommitdiff
path: root/git-clone.sh
diff options
context:
space:
mode:
authorJosef Weidendorfer <Josef.Weidendorfer@gmx.de>2005-11-10 13:12:19 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-10 23:57:56 (GMT)
commit66c9ec25553ce7332c46e2017b9c4d7c26310fff (patch)
treee47910c09e5fdc71577079832d2fe852696b781a /git-clone.sh
parentad7db62113368279a1b6994790bf30925fabea33 (diff)
downloadgit-66c9ec25553ce7332c46e2017b9c4d7c26310fff.zip
git-66c9ec25553ce7332c46e2017b9c4d7c26310fff.tar.gz
git-66c9ec25553ce7332c46e2017b9c4d7c26310fff.tar.bz2
Let git-clone/git-fetch follow HTTP redirections
Otherwise, git-clone silently failed to clone a remote repository where redirections (ie. a response with a "Location" header line) are used. This includes the fixes from Nick Hengeveld. Signed-off-by: Josef Weidendorfer <Josef.Weidendorfer@gmx.de> 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 4fdd652..aafcc18 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -23,7 +23,7 @@ fi
http_fetch () {
# $1 = Remote, $2 = Local
- curl -nsf $curl_extra_args "$1" >"$2"
+ curl -nsfL $curl_extra_args "$1" >"$2"
}
clone_dumb_http () {