commitizen / commitizen/cz-cli

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

Open
#674 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17.5k
Forks
566
Avg merge
8h 16m
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.