summaryrefslogtreecommitdiff
path: root/imap-send.c
diff options
context:
space:
mode:
authorKyle J. McKay <mackyle@gmail.com>2015-01-06 03:00:55 -0800
committerJunio C Hamano <gitster@pobox.com>2015-01-06 12:17:37 -0800
commitd47e55da92932eecb58d01a7d925efa36f30087d (patch)
treea5913160f81d7e0098ceeb71b75b583c725927af /imap-send.c
parent1e16b255b95b45374db0b0cf69ef0ecce768ac27 (diff)
downloadgit-d47e55da92932eecb58d01a7d925efa36f30087d.tar.gz
imap-send.c: support GIT_CURL_VERBOSE
When using git-imap-send to send via cURL, support setting the GIT_CURL_VERBOSE environment variable to enable cURL's verbose mode. The existing http.c code already supports this and does it by simply checking to see whether or not the environment variable exists -- it does not examine the value at all. For consistency, enable CURLOPT_VERBOSE when GIT_CURL_VERBOSE is set by using the exact same test that http.c does. Signed-off-by: Kyle J. McKay <mackyle@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'imap-send.c')
-rw-r--r--imap-send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap-send.c b/imap-send.c
index 4dfe4c25d7..060df834cb 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -1431,7 +1431,7 @@ static CURL *setup_curl(struct imap_server_conf *srvc)
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
- if (0 < verbosity)
+ if (0 < verbosity || getenv("GIT_CURL_VERBOSE"))
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
return curl;