2021-11-19 11:01:00 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Install pre-commit, ignoring globally set core.hooksPath
|
2021-11-25 12:57:02 +00:00
|
|
|
git config --unset-all core.hooksPath
|
2021-11-19 11:01:00 +00:00
|
|
|
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
|