{"thread":{"id":"10504","subject":"[PATCH] honor the http.sslVerify option in shell scripts","startedAt":"2007-10-28T17:47:30Z","lastAt":"2007-10-28T17:47:30Z","messageCount":1,"participants":["Aurelien Bompard"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"57450","messageId":"200710281847.30580.aurelien@bompard.org","threadId":"10504","inReplyTo":null,"subject":"[PATCH] honor the http.sslVerify option in shell scripts","fromName":"Aurelien Bompard","fromEmail":"aurelien@bompard.org","sentAt":"2007-10-28T17:47:30Z","receivedAt":"2007-10-28T17:47:30Z","isPatch":true,"sender":{"key":"aurelien@bompard.org","avatar":null},"body":"Signed-off-by: Aurélien Bompard <aurelien@bompard.org>\n---\n git-clone.sh     |    3 ++-\n git-ls-remote.sh |    3 ++-\n 2 files changed, 4 insertions(+), 2 deletions(-)\n\ndiff --git a/git-clone.sh b/git-clone.sh\nindex 5e582fe..3bb683d 100755\n--- a/git-clone.sh\n+++ b/git-clone.sh\n@@ -28,7 +28,8 @@ get_repo_base() {\n        ) 2>/dev/null\n }\n\n-if [ -n \"$GIT_SSL_NO_VERIFY\" ]; then\n+if [ -n \"$GIT_SSL_NO_VERIFY\" -o \\\n+    \"`git config --bool http.sslVerify`\" = false ]; then\n     curl_extra_args=\"-k\"\n fi\n\ndiff --git a/git-ls-remote.sh b/git-ls-remote.sh\nindex d56cf92..3eb18d1 100755\n--- a/git-ls-remote.sh\n+++ b/git-ls-remote.sh\n@@ -54,7 +54,8 @@ tmpdir=$tmp-d\n\n case \"$peek_repo\" in\n http://* | https://* | ftp://* )\n-        if [ -n \"$GIT_SSL_NO_VERIFY\" ]; then\n+        if [ -n \"$GIT_SSL_NO_VERIFY\" -o \\\n+            \"`git config --bool http.sslVerify`\" = false ]; then\n             curl_extra_args=\"-k\"\n         fi\n        if [ -n \"$GIT_CURL_FTP_NO_EPSV\" -o \\\n--\n1.5.3.3\n"}]}