Skip to content
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

husky > prepare-commit-msg hook failed #74

Closed
ShelbyZ opened this issue Aug 15, 2019 · 2 comments
Closed

husky > prepare-commit-msg hook failed #74

ShelbyZ opened this issue Aug 15, 2019 · 2 comments

Comments

@ShelbyZ
Copy link
Contributor

ShelbyZ commented Aug 15, 2019

Committing from Windows machine appears to fail on the husky commands (with no real help on what path/file was not found):

image

The prepare-commit-msg command will not work for win32 as is:

exec < /dev/tty && git-cz --hook
@dkundel
Copy link
Member

dkundel commented Aug 17, 2019

Oh no I'm sorry for that :( Do you happen to have tried it with WSL?

There's an open issue for this: commitizen/cz-cli#627

I think one solution for now is the following (I'll try to work on that next week):

  • Remove the git hook
  • Add a script trigger git-cz by running npm run commit
  • Use the Git hooks via Husky to verify the git commit message without providing the UI to create a compliant one.
  • Update the contributors guide accordingly

@dkundel
Copy link
Member

dkundel commented Jan 14, 2020

I removed git-cz from the hooks and replaced it with an npm run cm script.

@dkundel dkundel closed this as completed Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants