From: Benjamin C Meyer Date: Sat, 19 Jun 2010 19:59:32 +0000 (-0400) Subject: Allow git config path to contain $HOME or other shell variables by expanding them... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e51e14ec519a8b8b07319d8a38f9610fb2738ffc;p=git-hooks.git Allow git config path to contain $HOME or other shell variables by expanding them with eval. Signed-off-by: Benjamin C Meyer --- diff --git a/git-hooks b/git-hooks index 1921f36..2756b5c 100755 --- a/git-hooks +++ b/git-hooks @@ -35,7 +35,7 @@ function hook_dirs fi echo "${HOME}/.git_hooks${hook}" echo "${PWD}/git_hooks${hook}" - echo "`git config hooks.global`"${hook} + eval echo "`git config hooks.global`"${hook} } function list_hooks_in_dir