diff options
author | Benjamin C Meyer <ben@meyerhome.net> | 2010-03-19 02:38:40 -0400 |
---|---|---|
committer | Benjamin C Meyer <ben@meyerhome.net> | 2010-03-19 02:44:33 -0400 |
commit | d27278abb8fb1e79182c2cc2be7f9612b0a2812c (patch) | |
tree | 246b61b652497e4ec3dd3cf6ee3f7d95f997d815 /git-hooks | |
parent | d7c2315db00005d1bda769a9fd110cde67b71bac (diff) | |
download | git-hooks-d27278abb8fb1e79182c2cc2be7f9612b0a2812c.tar.gz git-hooks-d27278abb8fb1e79182c2cc2be7f9612b0a2812c.tar.bz2 |
Rather than using an environment variable just use the configuration
option hooks.global.
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
Diffstat (limited to 'git-hooks')
-rwxr-xr-x | git-hooks | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -36,11 +36,7 @@ function hook_dirs hook="${1}" echo "${HOME}/.git_hooks/${hook}" echo "${PWD}/git_hooks/${hook}" - if [ -z ${GLOBAL_GIT_HOOKS} ] ; then - echo "${GHD}/contrib/${hook}" - else - echo "${GLOBAL_GIT_HOOKS}" - fi + echo "`git config hooks.global`"/${hook} } function list_hooks_in_dir |