diff options
author | peter <peter@FreeBSD.org> | 2000-01-09 09:20:29 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-01-09 09:20:29 +0000 |
commit | c296620d565acb1a72295e78349bf7ce2f7c2d7f (patch) | |
tree | c8711035513c72e4599544dad928760c6b8d800b /CVSROOT/commitmail.pl | |
parent | 6102975409fb8db83d2bce511d571fc2d368f01c (diff) | |
download | FreeBSD-ports-c296620d565acb1a72295e78349bf7ce2f7c2d7f.zip FreeBSD-ports-c296620d565acb1a72295e78349bf7ce2f7c2d7f.tar.gz |
Allow a second whitespace-delimited word on an access line to override
the email address.
Diffstat (limited to 'CVSROOT/commitmail.pl')
-rwxr-xr-x | CVSROOT/commitmail.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CVSROOT/commitmail.pl b/CVSROOT/commitmail.pl index 8a8c5c8..923dfbf 100755 --- a/CVSROOT/commitmail.pl +++ b/CVSROOT/commitmail.pl @@ -14,7 +14,11 @@ while (<ACCESS>) { if ($words[0] =~ /^[#\/;]/) { next; } - push @names, $words[0]; + if ($words[1]) { + push @names, $words[1]; + } else { + push @names, $words[0]; + } } $list = join(" ", @names); if ($list ne '') { |