Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't return error when nothing to commit. #148

Merged
merged 2 commits into from
Feb 8, 2017

Conversation

ttwthomas
Copy link

@ttwthomas ttwthomas commented Feb 8, 2017

same as #118
not sure why the tests failed in previous PR but it worked on my machine

@stephenlacy
Copy link
Owner

Can you change it to

&& (String(stdout).indexOf('no changes added to commit') === 0)

Reduces length and removes the need for two checks

@ttwthomas
Copy link
Author

Done :)

@stephenlacy
Copy link
Owner

Perfect, thanks!

@stephenlacy stephenlacy merged commit af32e23 into stephenlacy:master Feb 8, 2017
@stephenlacy
Copy link
Owner

published 1.14.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants