bitjson / wip

WIP & naenae: CLI utilities to easily manage Work In Progress with Git
48 stars 3 forks source link

Show's naenae success when commitizen is canceled #3

Open bitjson opened 8 years ago

bitjson commented 8 years ago

Commitizen doesn't return an error code, so the "naenae completed" box is shown even when files remain staged and uncommitted.

bitjson commented 8 years ago

Pull request will have to be made to Commitizen.

bitjson commented 8 years ago

Reproduce:

npm install -g wip
wip with cz
mkdir test && cd test
git init
touch test.txt
wip
naenae

When naenae executes git-cz, if the commit is canceled or fails, no error code is returned. This causes naenae to return a success message when it should warn the user that changes are still staged and waiting for commit.