diff options
| author | Junio C Hamano <junkio@cox.net> | 2006-06-02 18:17:35 -0700 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2006-06-02 18:17:35 -0700 |
| commit | 2f164c35fa8915ddd8e8a01809a9935ad900f13c (patch) | |
| tree | 4a8e5b79c63abd436aea600457775b5557937c25 /git-send-email.perl | |
| parent | 20ff06805c66826404b154b9309a8581449af2b0 (diff) | |
| parent | 2052d146f60eaeeef50cb4d437e4a25051f8d8c3 (diff) | |
| download | git-2f164c35fa8915ddd8e8a01809a9935ad900f13c.tar.gz | |
Merge branch 'ds/doc' into jc/fmt-patch
* ds/doc:
Update documentation for git-format-patch
sha1_file: avoid re-preparing duplicate packs
handle concurrent pruning of packed objects
http: prevent segfault during curl handle reuse
Remove possible segfault in http-fetch.
gitk: show_error fix
[PATCH] gitk: start-up bugfix
[PATCH] gitk: Replace "git-" commands with "git "
[PATCH] gitk: Display commit messages with word wrap
gitk: Fix bug where page-up/down wouldn't always work properly
gitk: Fix display of "(...)" for parents/children we haven't drawn
send-email: only 'require' instead of 'use' Net::SMTP
Allow multiple -m options to git-commit.
Diffstat (limited to 'git-send-email.perl')
| -rwxr-xr-x | git-send-email.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl index 0e368fff0c..ed1d89b3f7 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -21,7 +21,6 @@ use warnings; use Term::ReadLine; use Getopt::Long; use Data::Dumper; -use Net::SMTP; # most mail servers generate the Date: header, but not all... $ENV{LC_ALL} = 'C'; @@ -394,6 +393,7 @@ X-Mailer: git-send-email $gitversion print $sm "$header\n$message"; close $sm or die $?; } else { + require Net::SMTP; $smtp ||= Net::SMTP->new( $smtp_server ); $smtp->mail( $from ) or die $smtp->message; $smtp->to( @recipients ) or die $smtp->message; |
