Skip to content

Commit

Permalink
Trivial support for cloning and fetching via ftp://.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sasha Khapyorsky authored and Junio C Hamano committed Sep 14, 2006
1 parent b85c4bb commit 38529e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion git-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions git-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion git-ls-remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38529e2

Please sign in to comment.