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

Update for remote tags which have 'refs/tags/' in front of the tag name #12

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

joepjoosten
Copy link

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.

@deepy deepy self-assigned this Apr 13, 2018
@deepy deepy requested review from deepy and umechaan April 13, 2018 07:10
@@ -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"]);
Copy link
Member

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

@deepy
Copy link
Member

deepy commented Apr 13, 2018

Hi @joepjoosten, thank you for your contribution, it looks great!

There's just this one little minor thing before we can merge it.

@joepjoosten
Copy link
Author

Hi @deepy. Fix the duplicate test that i wrongfully copy / pasted....

@joepjoosten
Copy link
Author

@deepy and now it also returns the version without "refs/tags" so that version can be used correctly

@deepy
Copy link
Member

deepy commented Apr 18, 2018

Fantastic :-)

Have you signed the CLA? https://www.cinnober.com/cla

@deepy deepy removed their assignment Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants