summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-01-04 14:02:55 -0800
committerJunio C Hamano <gitster@pobox.com>2016-01-04 14:02:55 -0800
commit06b5c9304d77b2f3ffea7ea16b9d306a84cd5e93 (patch)
tree08cc726de3ea82d611340e66db5991ea928cecc3
parent34872f0b3c1d0054fe1981ad87b561a9e9b98c26 (diff)
parent9d605249e53db69b47cdf6145ec9639a45c38100 (diff)
downloadgit-06b5c9304d77b2f3ffea7ea16b9d306a84cd5e93.tar.gz
Merge branch 'jk/send-email-ssl-errors' into maint
Improve error reporting when SMTP TLS fails. * jk/send-email-ssl-errors: send-email: enable SSL level 1 debug output
-rwxr-xr-xgit-send-email.perl7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index e907e0eacf..72508bed93 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -1318,6 +1318,13 @@ Message-Id: $message_id
require Net::SMTP::SSL;
$smtp_domain ||= maildomain();
require IO::Socket::SSL;
+
+ # Suppress "variable accessed once" warning.
+ {
+ no warnings 'once';
+ $IO::Socket::SSL::DEBUG = 1;
+ }
+
# Net::SMTP::SSL->new() does not forward any SSL options
IO::Socket::SSL::set_client_defaults(
ssl_verify_params());