Skip to content

Commit

Permalink
fix(projects): fix get all tags order by version
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Apr 23, 2024
1 parent e940d99 commit 05a0223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { GitCommit, GitCommitAuthor, GithubConfig, RawGitCommit, Reference,

/** Get the total git tags */
export async function getTotalGitTags() {
const tagStr = await execCommand('git', ['--no-pager', 'tag', '-l', '--sort=creatordate']);
const tagStr = await execCommand('git', ['--no-pager', 'tag', '-l', '--sort=v:refname']);

const tags = tagStr.split('\n');

Expand Down

0 comments on commit 05a0223

Please sign in to comment.