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

libgit2: correctly resolve (annotated) tags #457

Merged
merged 1 commit into from
Oct 21, 2021
Merged

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Oct 21, 2021

In d0560e5 the SemVer implementations were aligned, and the logic was
simplified a bit (or so I thought). This did however result in the
introduction of a regression, as it failed to take "simple tags" into
account.

This commit ensures both are taken into account again, and ensures it
is now covered by a proper test.

Fixes: #456

@hiddeco hiddeco force-pushed the libgit2-simple-tag branch 3 times, most recently from b484454 to 86d7326 Compare October 21, 2021 14:46
@hiddeco hiddeco marked this pull request as ready for review October 21, 2021 14:48
@hiddeco hiddeco added area/git Git related issues and pull requests bug Something isn't working labels Oct 21, 2021
@hiddeco hiddeco requested a review from stefanprodan October 21, 2021 14:48
@hiddeco hiddeco force-pushed the libgit2-simple-tag branch from 86d7326 to 39e1d40 Compare October 21, 2021 14:53
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @hiddeco 🏅

@hiddeco hiddeco force-pushed the libgit2-simple-tag branch 2 times, most recently from 4dcf7b2 to e988f90 Compare October 21, 2021 15:09
In d0560e5 the SemVer implementations were aligned, and the logic was
simplified a bit (or so I thought). This did however result in the
introduction of a regression, as it failed to take "simple tags" into
account.

This commit ensures both are taken into account again, and ensures it
is now covered by a proper test.

Signed-off-by: Hidde Beydals <hello@hidde.co>
@hiddeco hiddeco force-pushed the libgit2-simple-tag branch from e988f90 to e736493 Compare October 21, 2021 15:12
@hiddeco hiddeco merged commit 4dc3185 into main Oct 21, 2021
@hiddeco hiddeco deleted the libgit2-simple-tag branch October 21, 2021 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/git Git related issues and pull requests bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

libgit2 azure devops - semver filter only works with Annotated style GIT tags after recent patch
2 participants