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>
Sasha Khapyorsky committed
Sep 14, 2006 at 05:24 UTC
38529e28a4f465ad5d5f2fa249ca17da680bac5f
3 files changed
+4
-4
git-clone.sh
+1
-1
@@ -298,7 +298,7 @@ yes,yes)
298
fi
299
git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD" || exit 1
300
;;
301
- https://*|http://*)
301
+ https://*|http://*|ftp://*)
302
if test -z "@@NO_CURL@@"
303
then
304
clone_dumb_http "$repo" "$D"
git-fetch.sh
+2
-2
@@ -286,7 +286,7 @@ fetch_main () {
286
287
# There are transports that can fetch only one head at a time...
288
case "$remote" in
289
- http://* | https://*)
289
+ http://* | https://* | ftp://*)
290
if [ -n "$GIT_SSL_NO_VERIFY" ]; then
291
curl_extra_args="-k"
292
fi
@@ -350,7 +350,7 @@ fetch_main () {
350
done
351
352
case "$remote" in
353
- http://* | https://* | rsync://* )
353
+ http://* | https://* | ftp://* | rsync://* )
354
;; # we are already done.
355
*)
356
( : subshell because we muck with IFS
git-ls-remote.sh
+1
-1
@@ -49,7 +49,7 @@ trap "rm -fr $tmp-*" 0 1 2 3 15
49
tmpdir=$tmp-d
50
51
case "$peek_repo" in
52
-http://* | https://* )
52
+http://* | https://* | ftp://* )
53
if [ -n "$GIT_SSL_NO_VERIFY" ]; then
54
curl_extra_args="-k"
55
fi