aboutsummaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorSergey Vlasov <vsu@altlinux.ru>2006-10-29 22:31:39 +0300
committerJunio C Hamano <junkio@cox.net>2006-10-29 12:45:23 -0800
commit6dcfa306f2b67b733a7eb2d7ded1bc9987809edb (patch)
treeed4a62ffbc9a8ab474b3dcc7db13b185de98cdfc /git-send-email.perl
parent9c572b21dd090a1e5c5bb397053bf8043ffe7fb4 (diff)
downloadgit-6dcfa306f2b67b733a7eb2d7ded1bc9987809edb.tar.gz
git-6dcfa306f2b67b733a7eb2d7ded1bc9987809edb.tar.xz
git-send-email: Read the default SMTP server from the GIT config file
Make the default value for --smtp-server configurable through the 'sendemail.smtpserver' option in .git/config (or $HOME/.gitconfig). Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Acked-by: Ryan Anderson <rda@google.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index c42dc3bc9..4c87c20c1 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -231,6 +231,9 @@ if (!defined $initial_reply_to && $prompting) {
}
if (!$smtp_server) {
+ $smtp_server = $repo->config('sendemail.smtpserver');
+}
+if (!$smtp_server) {
foreach (qw( /usr/sbin/sendmail /usr/lib/sendmail )) {
if (-x $_) {
$smtp_server = $_;