From f664669439c0f005e3579d1c67b4ebd9fa24de36 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 9 Feb 2022 18:13:40 -0500 Subject: Move git hooks to own folder Instead of symlinking, just set the local git config. --- Biz/Bild/ShellHook.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Biz/Bild') diff --git a/Biz/Bild/ShellHook.sh b/Biz/Bild/ShellHook.sh index 1cdb8ca..7e93850 100644 --- a/Biz/Bild/ShellHook.sh +++ b/Biz/Bild/ShellHook.sh @@ -24,12 +24,8 @@ alias runghc="runghc --ghc-arg=-i\$BIZ_ROOT" alias guile="guile -L \$BIZ_ROOT" alias tree="tree -I _ -F" -# link git hooks - rm -f "$BIZ_ROOT/.git/hooks/{post-checkout,post-merge,pre-commit,pre-push}" - ln -s "$BIZ_ROOT/Biz/Ide/post-checkout" "$BIZ_ROOT/.git/hooks/post-checkout" - ln -s "$BIZ_ROOT/Biz/Ide/post-merge" "$BIZ_ROOT/.git/hooks/post-merge" - ln -s "$BIZ_ROOT/Biz/Ide/pre-commit" "$BIZ_ROOT/.git/hooks/pre-commit" - ln -s "$BIZ_ROOT/Biz/Ide/pre-push" "$BIZ_ROOT/.git/hooks/pre-push" +# configure git hooks + git config --local core.hooksPath "$BIZ_ROOT/Biz/Ide/hooks" # function deps() { niv --sources-file "$BIZ_ROOT/Biz/Bild/Sources.json" "$@" -- cgit v1.2.3