From e51e14ec519a8b8b07319d8a38f9610fb2738ffc Mon Sep 17 00:00:00 2001 From: Benjamin C Meyer Date: Sat, 19 Jun 2010 15:59:32 -0400 Subject: Allow git config path to contain $HOME or other shell variables by expanding them with eval. Signed-off-by: Benjamin C Meyer --- git-hooks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3