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

Fixed a problem with sorting of tags #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

epm-marcus
Copy link

Fixed a problem where sorting of multiple tags which where created on the same date would not work correctly. Now instead it sorts on the date first and if multiple tags are found on the same date it selects the tag with the "highest" version. For example, earlier if we had two tags with the names: Application-v1.0.0
Application-v1.0.1
Which were created on the same date, the v1.0.0 tag would be selected. Now by also sorting on the refname it will select the tag with the highest version number, i.e Application-v1.0.1 instead.

Fixed a problem where sorting of multiple tags which where created on the same date would not work correctly. Now instead it sorts on the date first and if multiple tags are found on the same date it selects the tag with the "highest" version. For example, earlier if we had two tags with the names:
Application-v1.0.0
Application-v1.0.1
Which were created on the same date, the v1.0.0 tag would be selected. Now by also sorting on the refname it will select the tag with the highest version number, i.e Application-v1.0.1 instead.
@WyriHaximus
Copy link
Owner

@epm-marcus Looking at why the tests are failing, this shouldn't happen. Might have messed up, will let you know when I fixed them.

@WyriHaximus WyriHaximus added the bug Something isn't working label Oct 31, 2024
@WyriHaximus
Copy link
Owner

@epm-marcus Do you have more details, or even an public repo I can look at. Set up https://github.com/repository-situations/same-day-git-tag for #57 and a few follow up PR's so I can test (edge) cases like this better. But the tests are succeeding on it. Unless I missed something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working JavaScript 🦏
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants