mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Adjust bin/tools/pre-commit-hook to avoid triggering pre-receive hook
This commit is contained in:
@ -93,8 +93,8 @@ showBadFiles()
|
|||||||
checkIllegalCode()
|
checkIllegalCode()
|
||||||
{
|
{
|
||||||
TAB=$'\t'
|
TAB=$'\t'
|
||||||
BAD=("Nabla" "$TAB")
|
BAD=("[N]abla" "$TAB")
|
||||||
BADmsg=("Nabla" "<TAB>")
|
BADmsg=("nabla" "<TAB>")
|
||||||
n=${#BAD[@]};
|
n=${#BAD[@]};
|
||||||
|
|
||||||
unset errorType
|
unset errorType
|
||||||
@ -170,7 +170,7 @@ checkLineLength()
|
|||||||
# use builtin whitespace checks to avoid trailing space
|
# use builtin whitespace checks to avoid trailing space
|
||||||
bad=$(git diff-index --check --cached $against --) || die "$bad"
|
bad=$(git diff-index --check --cached $against --) || die "$bad"
|
||||||
|
|
||||||
# check for illegal code, e.g. <TAB>, Nabla etc
|
# check for illegal code, e.g. <TAB>, nabla etc
|
||||||
checkIllegalCode
|
checkIllegalCode
|
||||||
|
|
||||||
# if OpenCFD copyright exists, ensure it contains correct year
|
# if OpenCFD copyright exists, ensure it contains correct year
|
||||||
|
|||||||
Reference in New Issue
Block a user