Skip to content

Commit d47e55d

Browse files
mackylegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1e16b25 commit d47e55d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imap-send.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ static CURL *setup_curl(struct imap_server_conf *srvc)
14311431

14321432
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
14331433

1434-
if (0 < verbosity)
1434+
if (0 < verbosity || getenv("GIT_CURL_VERBOSE"))
14351435
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
14361436

14371437
return curl;

0 commit comments

Comments
 (0)