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

mversion -m failing on Windows7 #27

Open
dnbard opened this issue Feb 28, 2015 · 3 comments
Open

mversion -m failing on Windows7 #27

dnbard opened this issue Feb 28, 2015 · 3 comments

Comments

@dnbard
Copy link

dnbard commented Feb 28, 2015

Hello! mversion throw next error when I'm using -m on Windows 7.

mversion patch -m
Failed updating:
Command failed: C:\Windows\system32\cmd.exe /s /c "git tag -a v0.0.2 -m "v0.0.2""
fatal: tag 'v0.0.2' already exists

For some reasons command C:\Windows\system32\cmd.exe /s /c "git tag -a v0.0.2 -m "v0.0.2" aren't working for me.
I'm using bash-enabled terminal so if I switch from C:\Windows\system32\cmd.exe /s /c "git tag -a v0.0.2 -m "v0.0.2" to git tag -a v0.0.2 -m "v0.0.2" then it will fix this issue. Is there an ability to do it? Maybe with help of .mversionrc file ?

@rubennorte
Copy link

It's failing because the git tag "v0.0.2" existed before you run mversion. Delete it (git tag -d v0.0.2) and run mversion again or create a different version.

@dnbard
Copy link
Author

dnbard commented Feb 28, 2015

It's failing with any version. Same error no matter how many times I'll run mversion patch -m.

@rubennorte
Copy link

If you just run mversion patch -m and it fails, when you run it again you're trying to create the same version as before, because when the command fails it restores the repository. Try deleting the tag or specifing a version (e.g. mversion 0.0.5 -m)

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

2 participants