You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(init): use prek when installing hooks if pre-commit is missing
cz init already treated prek as installed, but always ran
`pre-commit install`, which raised FileNotFoundError when only prek
was on PATH. Use the available installer, and ask when both exist.
Fixes#2018
Copy file name to clipboardExpand all lines: docs/commands/init.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ During the initialization process, you'll be prompted to configure the following
43
43
-`pep440`: Python Package Versioning
44
44
6.**Changelog Generation**: Configure whether to automatically generate changelog during version bumps
45
45
7.**Alpha Versioning**: Option to keep major version at 0 for alpha/beta software
46
-
8.**Pre-commit Hooks**: Set up Git pre-commit hooks for automated commit message validation
46
+
8.**Pre-commit Hooks**: Set up Git hooks for automated commit message validation. If you choose to install hooks, Commitizen uses `pre-commit` or `prek` (whichever is on PATH). If both are installed, you are asked which one to use.
47
47
48
48
See [Configuration Options][configuration_options] for more details.
0 commit comments