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

error: unknown option `hook' #661

Open
alialaa opened this issue Aug 3, 2019 · 7 comments
Open

error: unknown option `hook' #661

alialaa opened this issue Aug 3, 2019 · 7 comments

Comments

@alialaa
Copy link

alialaa commented Aug 3, 2019

Hello, I am trying to use 'git commit' using a husky hook as mentioned in the docs but I get error: unknown option `hook' when husky is trying to run exec < /dev/tty && git cz --hook

@Indimeco
Copy link

Indimeco commented Aug 5, 2019

@alialaa Had this issue. Updating commitizen to 4.0.3 fixed it for me.

@alialaa
Copy link
Author

alialaa commented Aug 5, 2019

@Indimeco Are you sure? I am already using this version.

@Indimeco
Copy link

Indimeco commented Aug 5, 2019

Yeah, pretty sure this is how I fixed it yesterday. To my understanding the error is saying "you supplied an argument to git-cz that does not exist" i.e., I was using a version where --hook haden't been implemented yet.

@vicentelyrio
Copy link

I had to rerun the commands ./node_modules/.bin/commitizen and ./node_modules/.bin/commitizen init cz-conventional-changelog --save-dev --save-exact

@alialaa
Copy link
Author

alialaa commented Aug 6, 2019

@vicentelyrio thanks I did that and it worked

@DWboutin
Copy link

Thanks a lot @vicentelyrio

@gberghauserapotheke
Copy link

@vicentelyrio vlw meu amigo, to com mesmo problema

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

5 participants