From: Mark Wooding Date: Wed, 1 Feb 2006 11:44:37 +0000 (+0000) Subject: http: Turn on verbose Curl messages if GIT_CURL_VERBOSE set in environment X-Git-Tag: v1.2.0~57^3~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7982d74e1ca846e6ab9b1bfb1fcd9c34e3fd534f;p=git.git http: Turn on verbose Curl messages if GIT_CURL_VERBOSE set in environment Signed-off-by: Mark Wooding Signed-off-by: Junio C Hamano --- diff --git a/http.c b/http.c index eefb0f03..632c2c5c 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; }