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