From fd88652f408f4678f8c8233837c1cd5f1c6595b6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 24 Oct 2008 19:04:30 +0200 Subject: git-hook: Changed directory order for less interference --- etc/functions/git-hook | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/functions') diff --git a/etc/functions/git-hook b/etc/functions/git-hook index fb12c4d..f20c988 100644 --- a/etc/functions/git-hook +++ b/etc/functions/git-hook @@ -7,10 +7,10 @@ typeset hook_dir action=$1 hook=$2 if [[ -n $GIT_DIR && -d $GIT_DIR ]] { hook_dir=$GIT_DIR/hooks -} elif [[ -d hooks ]] { - hook_dir=$PWD/hooks } elif [[ -d .git/hooks ]] { hook_dir=$PWD/.git/hooks +} elif [[ -d hooks ]] { + hook_dir=$PWD/hooks } elif [[ $PWD == */hooks ]] { hook_dir=$PWD } else { -- cgit v1.2.3