diff options
author | Benjamin C Meyer <ben@meyerhome.net> | 2010-06-19 15:59:32 -0400 |
---|---|---|
committer | Benjamin C Meyer <ben@meyerhome.net> | 2010-06-19 16:01:36 -0400 |
commit | e51e14ec519a8b8b07319d8a38f9610fb2738ffc (patch) | |
tree | 039cb64dba1da3191ee2cfac3029ac7dfeccf4b8 | |
parent | 33ecf08e87c4d11a8698c7735e7bd33880cf4381 (diff) | |
download | git-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-x | git-hooks | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |