##// END OF EJS Templates
Added tag v4.18.2 for changeset 1e9f12aa01f8
Added tag v4.18.2 for changeset 1e9f12aa01f8

File last commit:

r724:60c231be default
r821:6242ccce stable
Show More
git-send-email-honor-PATH.patch
28 lines | 1.2 KiB | text/x-diff | DiffLexer
/ pkgs / patches / git / git-send-email-honor-PATH.patch
dependencies: bumped GIT to 2.19.1 release
r584 diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
dependencies: bumped git to 2.22.0 release
r724 index 1afe9fc858..05dd7c3a90 100644
dependencies: bumped GIT to 2.19.1 release
r584 --- a/Documentation/git-send-email.txt
+++ b/Documentation/git-send-email.txt
dependencies: bumped git to 2.22.0 release
r724 @@ -215,8 +215,7 @@ a password is obtained using 'git-credential'.
dependencies: bumped GIT to 2.19.1 release
r584 specify a full pathname of a sendmail-like program instead;
the program must support the `-i` option. Default value can
be specified by the `sendemail.smtpServer` configuration
- option; the built-in default is to search for `sendmail` in
- `/usr/sbin`, `/usr/lib` and $PATH if such program is
+ option; the built-in default is to search in $PATH if such program is
available, falling back to `localhost` otherwise.
--smtp-server-port=<port>::
diff --git a/git-send-email.perl b/git-send-email.perl
dependencies: bumped git to 2.22.0 release
r724 index 8eb63b5a2f..74a61d8213 100755
dependencies: bumped GIT to 2.19.1 release
r584 --- a/git-send-email.perl
+++ b/git-send-email.perl
dependencies: bumped git to 2.22.0 release
r724 @@ -956,8 +956,7 @@ sub expand_one_alias {
dependencies: bumped GIT to 2.19.1 release
r584 }
if (!defined $smtp_server) {
- my @sendmail_paths = qw( /usr/sbin/sendmail /usr/lib/sendmail );
- push @sendmail_paths, map {"$_/sendmail"} split /:/, $ENV{PATH};
+ my @sendmail_paths = map {"$_/sendmail"} split /:/, $ENV{PATH};
foreach (@sendmail_paths) {
if (-x $_) {
$smtp_server = $_;