File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ get_repo_base() {
2828 ) 2> /dev/null
2929}
3030
31- if [ -n " $GIT_SSL_NO_VERIFY " ]; then
31+ if [ -n " $GIT_SSL_NO_VERIFY " -o \
32+ " ` git config --bool http.sslVerify` " = false ]; then
3233 curl_extra_args=" -k"
3334fi
3435
Original file line number Diff line number Diff line change @@ -54,9 +54,10 @@ tmpdir=$tmp-d
5454
5555case " $peek_repo " in
5656http://* | https://* | ftp://* )
57- if [ -n " $GIT_SSL_NO_VERIFY " ]; then
58- curl_extra_args=" -k"
59- fi
57+ if [ -n " $GIT_SSL_NO_VERIFY " -o \
58+ " ` git config --bool http.sslVerify` " = false ]; then
59+ curl_extra_args=" -k"
60+ fi
6061 if [ -n " $GIT_CURL_FTP_NO_EPSV " -o \
6162 " ` git config --bool http.noEPSV` " = true ]; then
6263 curl_extra_args=" ${curl_extra_args} --disable-epsv"
You can’t perform that action at this time.
0 commit comments