honor the http.sslVerify option in shell scripts
Signed-off-by: Aurélien Bompard <aurelien@bompard.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
d1a2057560
commit
1c1f79a1e4
@ -28,7 +28,8 @@ get_repo_base() {
|
||||
) 2>/dev/null
|
||||
}
|
||||
|
||||
if [ -n "$GIT_SSL_NO_VERIFY" ]; then
|
||||
if [ -n "$GIT_SSL_NO_VERIFY" -o \
|
||||
"`git config --bool http.sslVerify`" = false ]; then
|
||||
curl_extra_args="-k"
|
||||
fi
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user