Trivial support for cloning and fetching via ftp://.
authorSasha Khapyorsky <sashak@voltaire.com>
Thu, 14 Sep 2006 02:24:04 +0000 (05:24 +0300)
committerJunio 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>
git-clone.sh
git-fetch.sh
git-ls-remote.sh
index 7060bdab01f696c4a664fb243aac96b9a786f2f7..e1b3bf382f7683ec429e99eae13a3abc3b80e2b1 100755 (executable)
@@ -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"
index c2eebee798d10f7ed5977fc4e56cf02731031971..09a5d6ceab7875f2344f84d684ea5cc250786c64 100755 (executable)
@@ -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
index 2fdcaf7886850b1f59a1775bffc23948d1b62c6a..2c0b52122f1c3ee7278912966b1584dadd8b5aea 100755 (executable)
@@ -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