Skip to content

Commit

Permalink
http: Turn on verbose Curl messages if GIT_CURL_VERBOSE set in enviro…
Browse files Browse the repository at this point in the history
…nment

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Mark Wooding authored and Junio C Hamano committed Feb 6, 2006
1 parent 7b934ec commit 7982d74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7982d74

Please sign in to comment.