X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-clone.sh;h=3998c55cef3658eda18817d513a5bd5003c30e89;hb=1974bf620b436b014bfe86179ff76485610a4887;hp=acc7a51b97c2ade58ab64299eb16c940a724c260;hpb=962ad61874267b715311b424c767d36c1ab921a6;p=git.git diff --git a/git-clone.sh b/git-clone.sh index acc7a51b9..3998c55ce 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -31,6 +31,10 @@ clone_dumb_http () { cd "$2" && clone_tmp="$GIT_DIR/clone-tmp" && mkdir -p "$clone_tmp" || exit 1 + if [ -n "$GIT_CURL_FTP_NO_EPSV" -o \ + "`git-repo-config --bool http.noEPSV`" = true ]; then + curl_extra_args="${curl_extra_args} --disable-epsv" + fi http_fetch "$1/info/refs" "$clone_tmp/refs" || { echo >&2 "Cannot get remote repository information. Perhaps git-update-server-info needs to be run there?" @@ -298,7 +302,7 @@ yes,yes) fi git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD" || exit 1 ;; - http://*) + https://*|http://*|ftp://*) if test -z "@@NO_CURL@@" then clone_dumb_http "$repo" "$D"