cz-cli
cz-cli copied to clipboard
Comittizen runs twice when using the `prepare-commit-msg` hook
Steps to re-produce
- Create a
prepare-commit-msghook:#!/bin/sh . "$(dirname "$0")/_/husky.sh" exec < /dev/tty && node_modules/.bin/cz --hook || true - Run
git commit - Follow the CLI
- Everything works as expected.
- Run
git cz - Follow the CLI
- 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?
Same issue here. I have configured all as per the documentation.
This question my be a duplicated on of https://github.com/commitizen/cz-cli/issues/844
Facing exactly the same issue. Kind of makes the whole interactive prepare-commit-msg a bit pointless. When i've finished the interactive prompt it spits me into gits edit message hook in vim