summaryrefslogtreecommitdiffstats
path: root/http.c
diff options
context:
space:
mode:
authorMark Wooding <mdw@distorted.org.uk>2006-02-01 12:44:37 +0100
committerJunio C Hamano <junkio@cox.net>2006-02-06 01:49:16 +0100
commit7982d74e1ca846e6ab9b1bfb1fcd9c34e3fd534f (patch)
treea91a3ad08e99349fd9d3b94b6033acb4f1f82466 /http.c
parenthttp-fetch: Fix message reporting rename of object file. (diff)
downloadgit-7982d74e1ca846e6ab9b1bfb1fcd9c34e3fd534f.tar.xz
git-7982d74e1ca846e6ab9b1bfb1fcd9c34e3fd534f.zip
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 '')
-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;
}