diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-24 19:04:30 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-24 19:04:30 +0200 |
commit | fd88652f408f4678f8c8233837c1cd5f1c6595b6 (patch) | |
tree | 884a4435506ef92c15dfb23a80628f84187bf6a2 /etc/completions | |
parent | ddb88acf45fca2aad858c594c8639517789a06ee (diff) |
git-hook: Changed directory order for less interference
Diffstat (limited to 'etc/completions')
-rw-r--r-- | etc/completions/_git-hook | 4 |
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 } |