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

fix: fix a bug of wrong tag order due to missing taggerdate for lightweight tags #17

Merged
merged 1 commit into from
Jun 30, 2022

Conversation

frostming
Copy link
Contributor

For lightweight tags, the taggerdate attribute is empty:

git for-each-ref --sort=creatordate --format '%(refname) %(taggerdate)' refs/tags
refs/tags/0.1.0 Mon May 16 16:37:26 2022 +0800
refs/tags/0.2.0 Tue May 24 13:18:50 2022 +0800
refs/tags/0.3.0 Fri May 27 13:45:05 2022 +0800
refs/tags/0.3.1 Fri May 27 16:08:04 2022 +0800
refs/tags/0.4.0
refs/tags/0.4.1

Sorting by taggerdate will lead to wrong order. Fix it by changing to creatordate.

@antfu antfu merged commit 5666d8d into antfu:main Jun 30, 2022
@frostming frostming deleted the fix/tag-order branch June 30, 2022 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants