imap-send.c: introduce the GIT_TRACE_CURL enviroment variable
authorElia Pinto <gitter.spiros@gmail.com>
Mon, 23 May 2016 13:44:03 +0000 (13:44 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 May 2016 22:48:18 +0000 (15:48 -0700)
Permit the use of the GIT_TRACE_CURL environment variable calling
the setup_curl_trace http.c helper routine.

Helped-by: Torsten Bögershausen <tboegi@web.de>
Helped-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Helped-by: Junio C Hamano <gitster@pobox.com>
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c
index 2c52027c84455819740bed9f53970e175b9ca133..8ad80674daf5636e5578df8590227eb63252497e 100644 (file)
@@ -1443,6 +1443,7 @@ static CURL *setup_curl(struct imap_server_conf *srvc)
 
        if (0 < verbosity || getenv("GIT_CURL_VERBOSE"))
                curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
+       setup_curl_trace(curl);
 
        return curl;
 }