summaryrefslogtreecommitdiff
path: root/etc/functions/git-hook
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/git-hook')
-rw-r--r--etc/functions/git-hook4
1 files changed, 2 insertions, 2 deletions
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 {