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
Commit is running twice when using commitizen with husky. #844
Comments
Hey @asjadanis, I'm kinda having the same issue, have you found a workaround for this? |
I have the same problem i didn't find how to solve. Event if 'im not using husky and having a classic hook the command is run twice |
@asjadanis did you find any solution to this? |
same issue, runs twice using regular git hook or husky |
This is because of the current issue commitizen/cz-cli#844.
This may or may not help people here, but we only run commitizen when no commit message is provided. This means commitizen will not run with
Not sure if this is the problem people here are facing, but it might help someone. |
Thanks @techmunk. You are a life saver |
this worked for me to make them both work at the same time:
|
Hi @roman-supy-io , Just curious if you mind clarifying how you achieved this? Where is |
$2 is |
watching this |
@techmunk cz is running when I pass a commit message. |
ref: #934 (comment)
|
I am trying to configure husky hooks with commitizen and lint-staged. This seems to trigger commit twice when I run
yarn cz
but when I run git commit it runs just once as expected. I have added githooks under the.husky folder
and the configuration can be seen below. I have already seen the issue mentioned on readme and renamed my script to cz but it doesn't seem to be running as expected.pre-commit
prepare-commit-msg
The text was updated successfully, but these errors were encountered: