diff options
author | Mark Wooding <mdw@distorted.org.uk> | 2006-02-01 11:44:37 +0000 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-02-05 16:49:16 -0800 |
commit | 7982d74e1ca846e6ab9b1bfb1fcd9c34e3fd534f (patch) | |
tree | a91a3ad08e99349fd9d3b94b6033acb4f1f82466 /http.c | |
parent | 7b934ec015363dd8881d249838ab3623a2d345fd (diff) | |
download | git-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |