commitizen / cz-cli

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

Weird behaviour when using cz cli (global) outside a git repo #976

Closed paro-paro closed 1 year ago

paro-paro commented 1 year ago

I have installed commitizen as a global utility following the steps in the README.md

It works just fine but whenever I invoke cz outside a git repo, I get a: Command failed: git diff --cached --no-ext-diff --name-only

I guess it should just exit with "not a git repo message".

Thanks in advanced!

Context: os: macOS M2 pro node: 18.16.1 (npm 9.5.1) cz-cli@4.3.0, cz-conventional-changelog@3.3.0

Screenshot 2023-06-27 at 10 03 19