X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-ls-remote.sh;h=fec70bbf88c614a2dadfc40950fdd7abdf7f2c63;hb=2ce1a1f23fd83d2cab22f87aff1165fb0c7ad450;hp=d56cf92ebfa685fd724a47e1ca753f0735dbd5bd;hpb=52d5bc9a161f839b78ec06c25736d09703fda802;p=git.git diff --git a/git-ls-remote.sh b/git-ls-remote.sh index d56cf92eb..fec70bbf8 100755 --- a/git-ls-remote.sh +++ b/git-ls-remote.sh @@ -54,9 +54,10 @@ tmpdir=$tmp-d case "$peek_repo" in http://* | https://* | ftp://* ) - if [ -n "$GIT_SSL_NO_VERIFY" ]; then - curl_extra_args="-k" - fi + if [ -n "$GIT_SSL_NO_VERIFY" -o \ + "`git config --bool http.sslVerify`" = false ]; then + curl_extra_args="-k" + fi if [ -n "$GIT_CURL_FTP_NO_EPSV" -o \ "`git config --bool http.noEPSV`" = true ]; then curl_extra_args="${curl_extra_args} --disable-epsv"