summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b85c4bb)
raw | patch | inline | side by side (parent: b85c4bb)
author | Sasha Khapyorsky <sashak@voltaire.com> | |
Thu, 14 Sep 2006 02:24:04 +0000 (05:24 +0300) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 14 Sep 2006 06:39:43 +0000 (23:39 -0700) |
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>
Signed-off-by: Sasha Khapyorsky <sashak@voltaire.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-clone.sh | patch | blob | history | |
git-fetch.sh | patch | blob | history | |
git-ls-remote.sh | patch | blob | history |
diff --git a/git-clone.sh b/git-clone.sh
index 7060bdab01f696c4a664fb243aac96b9a786f2f7..e1b3bf382f7683ec429e99eae13a3abc3b80e2b1 100755 (executable)
--- a/git-clone.sh
+++ b/git-clone.sh
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 c2eebee798d10f7ed5977fc4e56cf02731031971..09a5d6ceab7875f2344f84d684ea5cc250786c64 100755 (executable)
--- a/git-fetch.sh
+++ b/git-fetch.sh
# 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
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 2fdcaf7886850b1f59a1775bffc23948d1b62c6a..2c0b52122f1c3ee7278912966b1584dadd8b5aea 100755 (executable)
--- a/git-ls-remote.sh
+++ b/git-ls-remote.sh
tmpdir=$tmp-d
case "$peek_repo" in
-http://* | https://* )
+http://* | https://* | ftp://* )
if [ -n "$GIT_SSL_NO_VERIFY" ]; then
curl_extra_args="-k"
fi