diff --git a/.local/bin/scripts/pre-commit-install b/.local/bin/scripts/pre-commit-install new file mode 100755 index 0000000..abab893 --- /dev/null +++ b/.local/bin/scripts/pre-commit-install @@ -0,0 +1,6 @@ +#!/bin/sh +# Install pre-commit, ignoring globally set core.hooksPath +git config --unset core.hooksPath +GIT_CONFIG_GLOBAL=/dev/null pre-commit install +GIT_CONFIG_GLOBAL=/dev/null pre-commit install -t pre-push +git config --add core.hooksPath .git/hooks