mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-11 04:06:31 +02:00
Merge pull request #5239 from avijc/ticket/15683
[ticket/15683] Better error message when commit message has CRLF * github.com:/phpbb/phpbb: [ticket/15683] Better error message when commit message has CRLF
This commit is contained in:
@ -147,6 +147,15 @@ then
|
|||||||
quit $ERR_LENGTH;
|
quit $ERR_LENGTH;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for CR/LF line breaks
|
||||||
|
if grep -q $'\r$' "$1"
|
||||||
|
then
|
||||||
|
complain "The commit message uses CR/LF line breaks, which are not permitted." >&2
|
||||||
|
complain >&2
|
||||||
|
|
||||||
|
quit $ERR_EOF;
|
||||||
|
fi
|
||||||
|
|
||||||
lines=$(wc -l "$1" | awk '{ print $1; }');
|
lines=$(wc -l "$1" | awk '{ print $1; }');
|
||||||
expecting=header;
|
expecting=header;
|
||||||
in_description=0;
|
in_description=0;
|
||||||
|
Reference in New Issue
Block a user