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
The vim editor has an empty commit message and commitizen errors out due to an empty commit message.
Desired behavior
commitizen produces a commit message using information entered in prompts.
Screenshots
git commit
[husky] Running commitizen for prepare-commit-msg hook...
[email protected], [email protected]
All lines except first will be wrapped after 100 characters.
? Select the type of change that you're committing: chore: Changes that don't modify src or test files
?
Denote the SCOPE of this change (optional): empty
? Write a SHORT, IMPERATIVE description of the change:
cz message prompt tweak
? Provide a LONGER description of the change (optional). Use "|" to break new line:
false
? List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:
str.match is not a function
Aborting commit due to empty commit message.
@gee4vee Hi, you can try to upgrade your git to the latest version. My problem has been solved by upgrading git. The cause of the problem should be that the hook of git commit bash is not compatible with commitizen and husky.
Description
We set up
cz
as a husky pre-commit hook but when we go through the prompts viagit commit
it produces an empty commit message invim
.These commands were executed to set it up:
Our
.husky/prepare-commit-msg
:Steps to reproduce
git commit
.Current behavior
The vim editor has an empty commit message and commitizen errors out due to an empty commit message.
Desired behavior
commitizen produces a commit message using information entered in prompts.
Screenshots
Environment
[email protected]
[email protected]
The text was updated successfully, but these errors were encountered: