mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Fix legacy commit-msg hooks
This commit is contained in:
parent
0a4fb173e4
commit
49dc689bf0
2 changed files with 25 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ else
|
|||
fi
|
||||
|
||||
# Run the legacy pre-commit if it exists
|
||||
if [ -x "$HERE"/{hook_type}.legacy ] && ! "$HERE"/{hook_type}.legacy; then
|
||||
if [ -x "$HERE"/{hook_type}.legacy ] && ! "$HERE"/{hook_type}.legacy "$@"; then
|
||||
retv=1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue