mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-15 21:40:19 -06:00
Add support for commit-msg git hook
This commit is contained in:
1
pre_commit/resources/commit-msg-tmpl
Normal file
1
pre_commit/resources/commit-msg-tmpl
Normal file
@@ -0,0 +1 @@
|
||||
args="run --hook-stage=commit-msg --commit-msg-filename=$1"
|
||||
@@ -52,7 +52,7 @@ if [ ! -f $CONF_FILE ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
{pre_push}
|
||||
{hook_specific}
|
||||
|
||||
# Run pre-commit
|
||||
if ((WHICH_RETV == 0)); then
|
||||
|
||||
Reference in New Issue
Block a user