commitizen / cz-cli

The commitizen command line utility. #BlackLivesMatter
http://commitizen.github.io/cz-cli/
MIT License
16.7k stars 547 forks source link

editor appears after running the interactive #839

Open miguelsmuller opened 3 years ago

miguelsmuller commented 3 years ago

I'm using a husky hook and I'm having problems.

my file prepare-commit-msg in the husky folder looks like this:

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

exec < /dev/tty && npx cz --hook
miguelsmuller commented 3 years ago

https://user-images.githubusercontent.com/4589909/124663665-c2c80280-de80-11eb-9247-73969244371e.mp4

mvahedii commented 2 years ago

i have the same isuue !

Zhengqbbb commented 5 months ago

ref: https://github.com/commitizen/cz-cli/issues/934#issuecomment-1982811302

git config --local core.editor cat

image