fix: catch missing arg if using {prepare-}commit-msg stage · precommit/pre-commit@5258dce · GitHub
Skip to content

Commit 5258dce

Browse files
particledecayasottile
authored andcommitted
fix: catch missing arg if using {prepare-}commit-msg stage
If using the prepare-commit-msg and commit-msg stages specifically (such as with the try-repo command), the `--commit-msg-filename` arg must be provided. [fixes pre-commit#1336] chore: improve error message for hook stage check
1 parent 1c641b1 commit 5258dce

2 files changed

Lines changed: 20 additions & 8 deletions

File tree

pre_commit/commands/run.py

Lines changed: 9 additions & 0 deletions

tests/commands/run_test.py

Lines changed: 11 additions & 8 deletions

0 commit comments

Comments
 (0)