commitizen / cz-cli

The commitizen command line utility. #BlackLivesMatter

Home Page:http://commitizen.github.io/cz-cli/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

paro-paro opened this issue · comments

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