Skip to content

Commit 39cdcfa

Browse files
AdrianDCLee-W
authored andcommitted
fix(pre-commit-hooks)!: allow empty ranges in 'commitizen-branch'
Details: Pushing the same history from 'develop' to 'staging' for example fails because range 'origin/HEAD..HEAD' is empty > No commit found with range: 'origin/HEAD..HEAD' --- Signed-off-by: Adrian DC <[email protected]>
1 parent 0f3c27c commit 39cdcfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-hooks.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
the fact (e.g., pre-push or in CI) without an expensive check of the entire
2020
repository history.
2121
entry: cz
22-
args: [check, --rev-range, origin/HEAD..HEAD]
22+
args: [--no-raise, '3', check, --rev-range, origin/HEAD..HEAD]
2323
always_run: true
2424
pass_filenames: false
2525
language: python

0 commit comments

Comments
 (0)