summaryrefslogtreecommitdiff
path: root/t/t3406-rebase-message.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2016-03-17 19:58:22 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-03-18 14:47:10 -0700
commita277d1efa35ea47ac473ed7e3d92fc6f1c04da7d (patch)
tree0fbf1af46761a793679a815f7f2de593dcc29136 /t/t3406-rebase-message.sh
parentGit 2.7.4 (diff)
downloadtgif-a277d1efa35ea47ac473ed7e3d92fc6f1c04da7d.tar.xz
send-email: ignore trailing whitespace in mailrc alias file
The regex for parsing mailrc considers everything after the second whitespace to be the email address, up to the end of the line. We have to include whitespace there, because you may have multiple space-separated addresses, each with their own internal quoting. But if there is trailing whitespace, we include that, too. This confuses quotewords() when we try to split the individual addresses, and we end up storing "undef" in our alias list. Later parts of the code then access that, generating perl warnings. Let's tweak our regex to throw away any trailing whitespace on each line. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3406-rebase-message.sh')
0 files changed, 0 insertions, 0 deletions