bin: add script to install pre-commit uncowardly
This commit is contained in:
parent
c508c7cfad
commit
74d282217c
1 changed files with 6 additions and 0 deletions
6
.local/bin/scripts/pre-commit-install
Executable file
6
.local/bin/scripts/pre-commit-install
Executable file
|
@ -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
|
Loading…
Add table
Reference in a new issue