commitizen / commitizen/cz-cli
Comittizen runs twice when using the `prepare-commit-msg` hook
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 17.5k
- Fork
- 566
- Merge trung bình
- 8 giờ 16 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
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`?
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.