summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorMark Wooding <mdw@distorted.org.uk>2006-02-01 11:44:37 +0000
committerJunio C Hamano <junkio@cox.net>2006-02-05 16:49:16 -0800
commit7982d74e1ca846e6ab9b1bfb1fcd9c34e3fd534f (patch)
treea91a3ad08e99349fd9d3b94b6033acb4f1f82466 /http.c
parent7b934ec015363dd8881d249838ab3623a2d345fd (diff)
downloadgit-7982d74e1ca846e6ab9b1bfb1fcd9c34e3fd534f.tar.gz
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>
Diffstat (limited to 'http.c')
-rw-r--r--http.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/http.c b/http.c
index eefb0f03d2..632c2c5c2f 100644
--- 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;
}