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

Handle explicit version that matches current version #37

Open
krmcbride opened this issue Nov 12, 2015 · 0 comments
Open

Handle explicit version that matches current version #37

krmcbride opened this issue Nov 12, 2015 · 0 comments

Comments

@krmcbride
Copy link

When I start a new project I often set the version to 0.1.0 (which you could argue is stupid, and probably comes from my Java background starting projects at 0.1.0-SNAPSHOT. Fair 'nuff). I expected to be able to run mversion 0.1.0 and just have the tool go through the normal tagging steps even though the version wasn't changing. Instead I got:

Failed updating:
Command failed:

which was puzzling. It took diving through the code to find that the invocation of git add was returning 1 since there were no modifications.

The simplest way to overcome this would be to stick a --allow-empty in there...but upon reflection, I think a better option would be

A) Enhance logging in such a way that I can tell I'm being stupid or...
B) Detect this condition and skip the commit step or...
C) ?

In the meantime I think I'll survive.

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

No branches or pull requests

1 participant