-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
commitizen produces empty commit message after answering prompts #967
Comments
Only use alias
{
"cz": "git commit -m ''"
}
git() {
local _cmd="$*"
if [ "$1" = "commit" ] && [ "${_cmd%%"--help"}" = "$_cmd" ]; then
shift 1; command git commit -m ''
else
command git "$@"
fi
} ISSUE Thread: |
@gee4vee Has this issue been resolved? I have the same problem and very confused, what is the cause of this problem |
@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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: