summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Mark Wooding <mdw@distorted.org.uk>2006-02-01 11:44:37 +0000
committerLibravatar Junio C Hamano <junkio@cox.net>2006-02-05 16:49:16 -0800
commit7982d74e1ca846e6ab9b1bfb1fcd9c34e3fd534f (patch)
treea91a3ad08e99349fd9d3b94b6033acb4f1f82466
parenthttp-fetch: Fix message reporting rename of object file. (diff)
downloadtgif-7982d74e1ca846e6ab9b1bfb1fcd9c34e3fd534f.tar.xz
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>
-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;
}