Skip to content

Commit

Permalink
Remove --sort=-creatordate from git tag logic
Browse files Browse the repository at this point in the history
Tags are now sorted according to semver, so this was pointlessly increasing the minimum Git version
Fixes #196
  • Loading branch information
cookpete committed May 23, 2021
1 parent 1b29530 commit f6a8ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const MATCH_V = /^v\d/

const fetchTags = async (options, remote) => {
const format = `%(refname:short)${DIVIDER}%(creatordate:short)`
const tags = (await cmd(`git tag -l --sort=-creatordate --format=${format} ${options.appendGitTag}`))
const tags = (await cmd(`git tag -l --format=${format} ${options.appendGitTag}`))
.trim()
.split('\n')
.map(parseTag(options))
Expand Down

0 comments on commit f6a8ab1

Please sign in to comment.