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/functions | |
parent | ddb88acf45fca2aad858c594c8639517789a06ee (diff) |
git-hook: Changed directory order for less interference
Diffstat (limited to 'etc/functions')
-rw-r--r-- | etc/functions/git-hook | 4 |
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 { |