summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Sasha Khapyorsky <sashak@voltaire.com>2006-09-14 05:24:04 +0300
committerLibravatar Junio C Hamano <junkio@cox.net>2006-09-13 23:39:43 -0700
commit38529e28a4f465ad5d5f2fa249ca17da680bac5f (patch)
tree987d2cae63d91de099e5e9ec0a7945ca24e0d16f
parentDocumentation: Fix broken links (diff)
downloadtgif-38529e28a4f465ad5d5f2fa249ca17da680bac5f.tar.xz
Trivial support for cloning and fetching via ftp://.
This adds trivial support for cloning and fetching via ftp://. Signed-off-by: Sasha Khapyorsky <sashak@voltaire.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgit-clone.sh2
-rwxr-xr-xgit-fetch.sh4
-rwxr-xr-xgit-ls-remote.sh2
3 files changed, 4 insertions, 4 deletions
diff --git a/git-clone.sh b/git-clone.sh
index 7060bdab01..e1b3bf382f 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -298,7 +298,7 @@ yes,yes)
fi
git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD" || exit 1
;;
- https://*|http://*)
+ https://*|http://*|ftp://*)
if test -z "@@NO_CURL@@"
then
clone_dumb_http "$repo" "$D"
diff --git a/git-fetch.sh b/git-fetch.sh
index c2eebee798..09a5d6ceab 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -286,7 +286,7 @@ fetch_main () {
# There are transports that can fetch only one head at a time...
case "$remote" in
- http://* | https://*)
+ http://* | https://* | ftp://*)
if [ -n "$GIT_SSL_NO_VERIFY" ]; then
curl_extra_args="-k"
fi
@@ -350,7 +350,7 @@ fetch_main () {
done
case "$remote" in
- http://* | https://* | rsync://* )
+ http://* | https://* | ftp://* | rsync://* )
;; # we are already done.
*)
( : subshell because we muck with IFS
diff --git a/git-ls-remote.sh b/git-ls-remote.sh
index 2fdcaf7886..2c0b52122f 100755
--- a/git-ls-remote.sh
+++ b/git-ls-remote.sh
@@ -49,7 +49,7 @@ trap "rm -fr $tmp-*" 0 1 2 3 15
tmpdir=$tmp-d
case "$peek_repo" in
-http://* | https://* )
+http://* | https://* | ftp://* )
if [ -n "$GIT_SSL_NO_VERIFY" ]; then
curl_extra_args="-k"
fi