Skip to content

Commit

Permalink
honor the http.sslVerify option in shell scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Aurelien Bompard authored and Junio C Hamano committed Oct 28, 2007
1 parent d1a2057 commit 1c1f79a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion git-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 4 additions & 3 deletions git-ls-remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1c1f79a

Please sign in to comment.