diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-12-21 10:59:06 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-12-21 10:59:06 -0800 |
commit | 7aaff08f3996eceadc98a531ef0faa8d7bae955e (patch) | |
tree | 22cc24fa15342226cec44ab043cd0cf230d62cb7 | |
parent | Merge branch 'sg/completion-no-column' (diff) | |
parent | send-email: enable SSL level 1 debug output (diff) | |
download | tgif-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-x | git-send-email.perl | 7 |
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()); |