Skip to content

Commit 047c914

Browse files
authored
fix(pre-commit-hooks): remove magic constants on pre-push hook (#1815)
* fix(pre-commit-hooks): remove magic constants on pre-push hook - Remove static reference to origin (work with other name) - now work when remote/HEAD isn't setted (e.g. on `git init .; git remote add origin git@...`) * fix(pre-commit-hooks): some `"` consistency in the file
1 parent de24815 commit 047c914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
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 check
22-
args: [--rev-range, origin/HEAD..HEAD]
22+
args: [--rev-range, "$PRE_COMMIT_TO_REF $PRE_COMMIT_FROM_REF"]
2323
always_run: true
2424
pass_filenames: false
2525
language: python

0 commit comments

Comments
 (0)