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](https://private-user-images.githubusercontent.com/43136874/249080141-fc5a24e1-e6f9-40b2-b947-98bb33959b3c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTE3MDgwNTAsIm5iZiI6MTcxMTcwNzc1MCwicGF0aCI6Ii80MzEzNjg3NC8yNDkwODAxNDEtZmM1YTI0ZTEtZTZmOS00MGIyLWI5NDctOThiYjMzOTU5YjNjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzI5VDEwMjIzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYyODA1MGNlM2ZkMzBhOTJkYjllYzQwY2ExODlmMzMxNDBhZTM0YzgxNWQ1ZmIxMjMyM2Y1ZmQxNjQ1NTI5OGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zZgrFmnefJLHJRacdVMpNrAW47UbQACR0ZpApv0ZMJI)