Skip to content

Commit

Permalink
fix(pre-commit-hooks)!: allow empty ranges in 'commitizen-branch'
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
AdrianDC committed Aug 25, 2024
1 parent 2a129d8 commit 5e4cbd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
the fact (e.g., pre-push or in CI) without an expensive check of the entire
repository history.
entry: cz
args: [check, --rev-range, origin/HEAD..HEAD]
args: [--no-raise, '3', check, --rev-range, origin/HEAD..HEAD]
always_run: true
pass_filenames: false
language: python
Expand Down

0 comments on commit 5e4cbd6

Please sign in to comment.