зеркало из https://github.com/microsoft/git.git
Merge branch 'bs/sendemail-tighten-anything-by'
The recently added feature to add addresses that are on anything-by: trailers in 'git send-email' was found to be way too eager and considered nonsense strings as if they can be legitimate beginning of *-by: trailer. This has been tightened. * bs/sendemail-tighten-anything-by: send-email: don't cc *-by lines with '-' prefix
This commit is contained in:
Коммит
061ed420ec
|
@ -1699,7 +1699,7 @@ sub process_file {
|
|||
# Now parse the message body
|
||||
while(<$fh>) {
|
||||
$message .= $_;
|
||||
if (/^([a-z-]*-by|Cc): (.*)/i) {
|
||||
if (/^([a-z][a-z-]*-by|Cc): (.*)/i) {
|
||||
chomp;
|
||||
my ($what, $c) = ($1, $2);
|
||||
# strip garbage for the address we'll use:
|
||||
|
|
Загрузка…
Ссылка в новой задаче