commitizen / commitizen/cz-cli
husky hook does not work
- Lingua principale
- JavaScript
- Stelle
- 17.5k
- Fork
- 566
- Merge medio
- 8h 16m
- PR unite (30g)
- 1
Descrizione
[This part of README](https://github.com/commitizen/cz-cli?tab=readme-ov-file#husky) has this:
```json
"husky": {
"hooks": {
"prepare-commit-msg": "exec < /dev/tty && npx cz --hook || true"
}
}
```
But this hook does not work. When I use `git commit` - I get default behavior
If I put this in .husky/prepare-commit-msg:
```sh
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
exec < /dev/tty && npx cz --hook || true
```
And run `git commit` it works but after commitizen I see result commit in nano. How to fix this?

Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.