From 09196490c91c9e62da56b5dda296bb2a500c8147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Wed, 3 Sep 2014 19:40:02 +0200 Subject: [PATCH] do not create subfolders in a hook folder It confuses the configure.sh script --- hooks/syntaxchecker/{php/check.sh => php.sh} | 0 hooks/syntaxchecker/pre-commit | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename hooks/syntaxchecker/{php/check.sh => php.sh} (100%) diff --git a/hooks/syntaxchecker/php/check.sh b/hooks/syntaxchecker/php.sh similarity index 100% rename from hooks/syntaxchecker/php/check.sh rename to hooks/syntaxchecker/php.sh diff --git a/hooks/syntaxchecker/pre-commit b/hooks/syntaxchecker/pre-commit index dbe4c94..2cd3e19 100755 --- a/hooks/syntaxchecker/pre-commit +++ b/hooks/syntaxchecker/pre-commit @@ -9,9 +9,9 @@ fi for FILE in `git diff-index --cached --name-status $against -- | cut --characters=3-`; do if [ -f $FILE ] then - if [ -f $GIT_DIR/hooks/syntaxchecker/${FILE##*.}/check.sh ] + if [ -f $GIT_DIR/hooks/syntaxchecker/${FILE##*.}.sh ] then - source $GIT_DIR/hooks/syntaxchecker/${FILE##*.}/check.sh + source $GIT_DIR/hooks/syntaxchecker/${FILE##*.}.sh fi fi done