]> gitweb.fluxo.info Git - git-hooks.git/commitdiff
Allow git config path to contain $HOME or other shell variables by expanding them...
authorBenjamin C Meyer <ben@meyerhome.net>
Sat, 19 Jun 2010 19:59:32 +0000 (15:59 -0400)
committerBenjamin C Meyer <ben@meyerhome.net>
Sat, 19 Jun 2010 20:01:36 +0000 (16:01 -0400)
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
git-hooks

index 1921f36ba79f4ff3758d250b15d29840f030ebe0..2756b5c455c24bbfe878de4547a39744cc448500 100755 (executable)
--- 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