-
Notifications
You must be signed in to change notification settings - Fork 15
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
Update for remote tags which have 'refs/tags/' in front of the tag name #12
base: master
Are you sure you want to change the base?
Conversation
@@ -43,7 +43,22 @@ class SemverGitPluginTest extends GroovyTestCase { | |||
testParseVersion("1.2.3-SNAPSHOT", [1,2,3,"SNAPSHOT"]); | |||
} | |||
void testParseVersion12_34_56_rc78() { | |||
testParseVersion("12.34.56-rc78", [12,34,56,"rc78"]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test name doesn't match the other tests, please restore a copy of the old one or rename the test
Hi @joepjoosten, thank you for your contribution, it looks great! There's just this one little minor thing before we can merge it. |
Hi @deepy. Fix the duplicate test that i wrongfully copy / pasted.... |
@deepy and now it also returns the version without "refs/tags" so that version can be used correctly |
Fantastic :-) Have you signed the CLA? https://www.cinnober.com/cla |
When using this in with continuous integration, the cloned git repo only had the tags from the remote repo, and when doing a git describe, the tags contain 'refs/tags/' in front of the tag name.
This change to the regex fixes this.