aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin C Meyer <ben@meyerhome.net>2010-06-19 15:59:32 -0400
committerBenjamin C Meyer <ben@meyerhome.net>2010-06-19 16:01:36 -0400
commite51e14ec519a8b8b07319d8a38f9610fb2738ffc (patch)
tree039cb64dba1da3191ee2cfac3029ac7dfeccf4b8
parent33ecf08e87c4d11a8698c7735e7bd33880cf4381 (diff)
downloadgit-hooks-e51e14ec519a8b8b07319d8a38f9610fb2738ffc.tar.gz
git-hooks-e51e14ec519a8b8b07319d8a38f9610fb2738ffc.tar.bz2
Allow git config path to contain $HOME or other shell variables by expanding them with eval.
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
-rwxr-xr-xgit-hooks2
1 files changed, 1 insertions, 1 deletions
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