commitizen / commitizen/cz-cli
Comittizen runs twice when using the `prepare-commit-msg` hook
Ouverte
- Langage dominant
- JavaScript
- Étoiles
- 17.5k
- Forks
- 566
- Merge moyen
- 8 h 16 min
- PR mergées (30 j)
- 1
Description
Steps to re-produce
1. Create a `prepare-commit-msg` hook:
``` #sh
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
exec < /dev/tty && node_modules/.bin/cz --hook || true
```
2. Run `git commit`
3. Follow the CLI
4. Everything works as expected.
5. Run `git cz`
6. Follow the CLI
7. Everything goes as expected except that, after we complete the wizard, Comittizen opens up again.
Is there any way to prevent `prepare-commit-msg` hook from running when executing `git cz`?
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.