ENH: Added DOS-style line ending check to git hook

This commit is contained in:
andy
2010-07-23 10:08:47 +01:00
parent e099012556
commit 102f797016

View File

@ -97,8 +97,8 @@ dieOnBadFiles()
#
checkIllegalCode()
{
reBad="(N""abla|"$'\t'")"
msgBad="N""abla or <TAB>"
reBad="(N""abla|"$'\t'"|"$'\r\n'")"
msgBad="N""abla, <TAB>, or DOS-style line ending"
badFiles=$(
for f in $fileList
@ -219,4 +219,5 @@ checkLineLength
exit 0
#------------------------------------------------------------------------------