Skip to content

Commit 75266a6

Browse files
authored
fix(pre-commit-hooks): correct rev-range syntax in commitizen-branch (#1841)
1 parent 0032547 commit 75266a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.pre-commit-hooks.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
the fact (e.g., pre-push or in CI) without an expensive check of the entire
2020
repository history.
2121
entry: cz check
22-
args: [--rev-range, origin/HEAD..HEAD]
22+
args: [--rev-range, "$PRE_COMMIT_FROM_REF..$PRE_COMMIT_TO_REF"]
2323
always_run: true
2424
pass_filenames: false
2525
language: python
2626
language_version: python3
2727
minimum_pre_commit_version: "3.2.0"
28+
stages: [pre-push]

0 commit comments

Comments
 (0)