From a76dd34d474ea756608ef3c93a8ddfdc96537066 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Wed, 21 Jul 2010 13:34:46 +0200 Subject: [PATCH] Adjust bin/tools/pre-commit-hook to avoid triggering pre-receive hook --- bin/tools/pre-commit-hook | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/tools/pre-commit-hook b/bin/tools/pre-commit-hook index 5460f7b38d..cb27530287 100755 --- a/bin/tools/pre-commit-hook +++ b/bin/tools/pre-commit-hook @@ -93,8 +93,8 @@ showBadFiles() checkIllegalCode() { TAB=$'\t' - BAD=("Nabla" "$TAB") - BADmsg=("Nabla" "") + BAD=("[N]abla" "$TAB") + BADmsg=("nabla" "") n=${#BAD[@]}; unset errorType @@ -170,7 +170,7 @@ checkLineLength() # use builtin whitespace checks to avoid trailing space bad=$(git diff-index --check --cached $against --) || die "$bad" -# check for illegal code, e.g. , Nabla etc +# check for illegal code, e.g. , nabla etc checkIllegalCode # if OpenCFD copyright exists, ensure it contains correct year