aboutsummaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorMichael Hendricks <michael@ndrix.org>2007-05-16 23:15:16 -0600
committerJunio C Hamano <junkio@cox.net>2007-05-16 22:33:04 -0700
commit504ceab6d24bc19ed5a04b5978c8899fa58dffe1 (patch)
treed045bade29d0d6a37ce40a9901c6616cc7ac0db3 /git-send-email.perl
parent0ab564be6e59c66c7aa4fc44997f3fc62ebcd0d9 (diff)
downloadgit-504ceab6d24bc19ed5a04b5978c8899fa58dffe1.tar.gz
git-504ceab6d24bc19ed5a04b5978c8899fa58dffe1.tar.xz
git-send-email: allow leading white space on mutt aliases
mutt version 1.5.14 (perhaps earlier versions too) permits alias files to have white space before the 'alias' keyword. Signed-off-by: Michael Hendricks <michael@ndrix.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 12ced2888..e60d8777f 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -212,7 +212,7 @@ my $aliasfiletype = $repo->config('sendemail.aliasfiletype');
my %parse_alias = (
# multiline formats can be supported in the future
mutt => sub { my $fh = shift; while (<$fh>) {
- if (/^alias\s+(\S+)\s+(.*)$/) {
+ if (/^\s*alias\s+(\S+)\s+(.*)$/) {
my ($alias, $addr) = ($1, $2);
$addr =~ s/#.*$//; # mutt allows # comments
# commas delimit multiple addresses