mirror of
https://github.com/git/git.git
synced 2024-11-30 21:44:02 +08:00
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>
This commit is contained in:
parent
b85c4bbbd7
commit
38529e28a4
@ -298,7 +298,7 @@ yes,yes)
|
|||||||
fi
|
fi
|
||||||
git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD" || exit 1
|
git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD" || exit 1
|
||||||
;;
|
;;
|
||||||
https://*|http://*)
|
https://*|http://*|ftp://*)
|
||||||
if test -z "@@NO_CURL@@"
|
if test -z "@@NO_CURL@@"
|
||||||
then
|
then
|
||||||
clone_dumb_http "$repo" "$D"
|
clone_dumb_http "$repo" "$D"
|
||||||
|
@ -286,7 +286,7 @@ fetch_main () {
|
|||||||
|
|
||||||
# There are transports that can fetch only one head at a time...
|
# There are transports that can fetch only one head at a time...
|
||||||
case "$remote" in
|
case "$remote" in
|
||||||
http://* | https://*)
|
http://* | https://* | ftp://*)
|
||||||
if [ -n "$GIT_SSL_NO_VERIFY" ]; then
|
if [ -n "$GIT_SSL_NO_VERIFY" ]; then
|
||||||
curl_extra_args="-k"
|
curl_extra_args="-k"
|
||||||
fi
|
fi
|
||||||
@ -350,7 +350,7 @@ fetch_main () {
|
|||||||
done
|
done
|
||||||
|
|
||||||
case "$remote" in
|
case "$remote" in
|
||||||
http://* | https://* | rsync://* )
|
http://* | https://* | ftp://* | rsync://* )
|
||||||
;; # we are already done.
|
;; # we are already done.
|
||||||
*)
|
*)
|
||||||
( : subshell because we muck with IFS
|
( : subshell because we muck with IFS
|
||||||
|
@ -49,7 +49,7 @@ trap "rm -fr $tmp-*" 0 1 2 3 15
|
|||||||
tmpdir=$tmp-d
|
tmpdir=$tmp-d
|
||||||
|
|
||||||
case "$peek_repo" in
|
case "$peek_repo" in
|
||||||
http://* | https://* )
|
http://* | https://* | ftp://* )
|
||||||
if [ -n "$GIT_SSL_NO_VERIFY" ]; then
|
if [ -n "$GIT_SSL_NO_VERIFY" ]; then
|
||||||
curl_extra_args="-k"
|
curl_extra_args="-k"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user