summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2015-12-21 10:59:06 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-12-21 10:59:06 -0800
commit7aaff08f3996eceadc98a531ef0faa8d7bae955e (patch)
tree22cc24fa15342226cec44ab043cd0cf230d62cb7
parentMerge branch 'sg/completion-no-column' (diff)
parentsend-email: enable SSL level 1 debug output (diff)
downloadtgif-7aaff08f3996eceadc98a531ef0faa8d7bae955e.tar.xz
Merge branch 'jk/send-email-ssl-errors'
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 2a3873b744..6caa5b563f 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -1332,6 +1332,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());