Fix legacy commit-msg hooks

This commit is contained in:
Anthony Sottile
2018-01-29 21:47:35 -08:00
parent 0a4fb173e4
commit 49dc689bf0
2 changed files with 25 additions and 1 deletions

View File

@@ -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