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/completions/_git-hook | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/completions/_git-hook') diff --git a/etc/completions/_git-hook b/etc/completions/_git-hook index b57c7a1..92b4d17 100644 --- a/etc/completions/_git-hook +++ b/etc/completions/_git-hook @@ -4,10 +4,10 @@ typeset hook_dir expl 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 } -- cgit v1.2.3