@matheusbsbs / matheus-bagliano / commits / 7982d74e1c
Fork 0

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>

Mark Wooding committed Feb 1, 2006 at 11:44 UTC 7982d74e1ca846e6ab9b1bfb1fcd9c34e3fd534f
1 file changed +3
http.c
+3
@@ -192,6 +192,9 @@ static CURL* get_curl_handle(void)
192
193 curl_easy_setopt(result, CURLOPT_FOLLOWLOCATION, 1);
194
195 + if (getenv("GIT_CURL_VERBOSE"))
196 + curl_easy_setopt(result, CURLOPT_VERBOSE, 1);
197 +
198 return result;
199 }
200