at 18.03-beta 28 lines 1.2 kB view raw
1diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt 2index 8060ea35c..c81067a19 100644 3--- a/Documentation/git-send-email.txt 4+++ b/Documentation/git-send-email.txt 5@@ -203,8 +203,7 @@ a password is obtained using 'git-credential'. 6 specify a full pathname of a sendmail-like program instead; 7 the program must support the `-i` option. Default value can 8 be specified by the `sendemail.smtpServer` configuration 9- option; the built-in default is to search for `sendmail` in 10- `/usr/sbin`, `/usr/lib` and $PATH if such program is 11+ option; the built-in default is to search in $PATH if such program is 12 available, falling back to `localhost` otherwise. 13 14 --smtp-server-port=<port>:: 15diff --git a/git-send-email.perl b/git-send-email.perl 16index edcc6d346..8e357aeab 100755 17--- a/git-send-email.perl 18+++ b/git-send-email.perl 19@@ -885,8 +885,7 @@ if (defined $initial_reply_to) { 20 } 21 22 if (!defined $smtp_server) { 23- my @sendmail_paths = qw( /usr/sbin/sendmail /usr/lib/sendmail ); 24- push @sendmail_paths, map {"$_/sendmail"} split /:/, $ENV{PATH}; 25+ my @sendmail_paths = map {"$_/sendmail"} split /:/, $ENV{PATH}; 26 foreach (@sendmail_paths) { 27 if (-x $_) { 28 $smtp_server = $_;