http: Turn on verbose Curl messages if GIT_CURL_VERBOSE set in environment
authorMark Wooding <mdw@distorted.org.uk>
Wed, 1 Feb 2006 11:44:37 +0000 (11:44 +0000)
committerJunio C Hamano <junkio@cox.net>
Mon, 6 Feb 2006 00:49:16 +0000 (16:49 -0800)
Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
http.c

diff --git a/http.c b/http.c
index eefb0f03d2f7ac30163e69b842f6943987cf9351..632c2c5c2fcf2ef51092aa72d8c2dee64efbde49 100644 (file)
--- a/http.c
+++ b/http.c
@@ -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;
 }