Merge "commit-msg: Adapt to awk behavior change on Cygwin/MSYS" into stable-2.14

This commit is contained in:
David Pursehouse 2018-02-27 10:22:22 +00:00 committed by Gerrit Code Review
commit 6ed5a40999
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ add_ChangeId() {
# - in END, the last textLine+ block is available for footer parsing
$AWK '
BEGIN {
if (match(ENVIRON["OS"], "Windows")) {
RS="\r?\n" # Required on recent Cygwin
}
# while we start with the assumption that textLine+
# is a footer, the first block is not.
isFooter = 0