From bb5cc95dc91f044008b7138882b8cc36ed1284ab Mon Sep 17 00:00:00 2001 From: HankyStyle Date: Mon, 2 Feb 2026 22:12:58 +0800 Subject: [PATCH] fix(pre-commit-hooks): correct rev-range syntax in commitizen-branch hook --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index c142634581..908d68bbe2 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -19,7 +19,7 @@ the fact (e.g., pre-push or in CI) without an expensive check of the entire repository history. entry: cz check - args: [--rev-range, origin/HEAD..HEAD] + args: [--rev-range, "$PRE_COMMIT_FROM_REF..$PRE_COMMIT_TO_REF"] always_run: true pass_filenames: false language: python