Browse Source

http: Turn on verbose Curl messages if GIT_CURL_VERBOSE set in environment

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Mark Wooding 19 years ago committed by Junio C Hamano
parent
commit
7982d74e1c
  1. 3
      http.c

3
http.c

@ -192,6 +192,9 @@ static CURL* get_curl_handle(void) @@ -192,6 +192,9 @@ static CURL* get_curl_handle(void)

curl_easy_setopt(result, CURLOPT_FOLLOWLOCATION, 1);

if (getenv("GIT_CURL_VERBOSE"))
curl_easy_setopt(result, CURLOPT_VERBOSE, 1);

return result;
}


Loading…
Cancel
Save