imap-send.c: introduce the GIT_TRACE_CURL enviroment variable

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>

Elia Pinto committed May 23, 2016 at 13:44 UTC 73e57aaf4ded85bb5387365f1ebefaabf80cf073
1 file changed +1
imap-send.c
+1
@@ -1443,6 +1443,7 @@ static CURL *setup_curl(struct imap_server_conf *srvc)
1443
1444 if (0 < verbosity || getenv("GIT_CURL_VERBOSE"))
1445 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
1446 + setup_curl_trace(curl);
1447
1448 return curl;
1449 }