mirror of
https://github.com/thegeeklab/git-sv.git
synced 2026-04-26 10:45:49 +03:00
[PR #161] [MERGED] fix: have current-version return biggest version if multiple tags point to a single commit #164
Labels
No labels
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/git-sv#164
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/thegeeklab/git-sv/pull/161
Author: @Strobotti
Created: 2/17/2025
Status: ✅ Merged
Merged: 2/17/2025
Merged by: @xoxys
Base:
main← Head:fix-current-version📝 Commits (1)
6dfea87fix: have current-version return biggest version if multiple tags point to a single commit📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
app/app.go(+2 -0)📄 Description
This PR fixes the issue where multiple release tags pointing to same commit doesn't return the latest tag deterministically. The issue is presented here:
The count is here set to 5 to demonstrate the order in which the tags are returned.
The fix merely adds "-version:refname" -sort to the mix and thus always returns the biggest version number as the top result if there are multiple "latest tag" -candidates to choose from:
I also opened an issue about this: https://github.com/thegeeklab/git-sv/issues/162
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.