commitizen / commitizen/cz-cli

Command line hangs when running npm version [major/minor/patch]

Aperta
#674 2 commenti 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
17.5k
Fork
566
Merge medio
8h 16m
PR unite (30g)
1

Descrizione

I've installed the repo and added this line to my husky:
`"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true",`

Everything works fine but when I try to bump my npm version using `npm version [major/minor/patch]` the command line hangs.

When running it in verbose mode (`npm version [major/minor/patch] --verbose`) I can see that it handing on this line: `npm info git [ 'commit', '-m', '4.0.1' ]`

Is there something I'm missing or is it a bug?
When I remove the line from husky it works as expected

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.