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
{{ message }}
Repository navigation
commitizen produces empty commit message after answering prompts #967
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...
cz-cli@4.3.0, cz-customizable@7.0.0
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.
Activity
Zhengqbbb commentedon Mar 2, 2023
Only use alias
npm czlike:{ "cz": "git commit -m ''" }ISSUE Thread:
Zhengqbbb/cz-git#87
sanjorcool commentedon Aug 15, 2023
@gee4vee Has this issue been resolved? I have the same problem and very confused, what is the cause of this problem
sanjorcool commentedon Aug 18, 2023
@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.