Skip to content

Commitizen pre-commit fails when using git commit -v #598

Closed
@albertocerrone

Description

@albertocerrone

Description

I usually create commits by using the git commit -v to have a verbose commit with all my changes.

Steps to reproduce

Run ´git commit -v´

Current behavior

commit validation: failed!
please enter a commit message in the commitizen format.
commit "": "fix: Remove `.` to the commitizen version
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0db57fb..ec425e1 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -54,7 +54,7 @@ repos:
     hooks:
       - id: doc8
   - repo: https://github.com/commitizen-tools/commitizen
-    rev: v.2.35.0
+    rev: v2.35.0
     hooks:
       - id: commitizen
         stages:"
pattern: (?s)(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)(\(\S+\))?!?:( [^\n\r]+)((\n\n.*)|(\s*))?$

Desired behavior

It should pass without any errors

Screenshots

No response

Environment

pre-commit = "^2.18.1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions