Do not limit the number of tags returned when finding previous version

This commit is contained in:
Paul Hatcherian 2022-12-20 07:02:54 -06:00
parent 02763ed6d3
commit 5a79aff975
4 changed files with 4 additions and 4 deletions

View file

@ -29,7 +29,7 @@ export class DefaultLastReleaseResolver implements LastReleaseResolver {
if (!!currentTag) {
// If we already have the current branch tagged, we are checking for the previous one
// so that we will have an accurate increment (assuming the new tag is the expected one)
const command = `git for-each-ref --count=2 --sort=-v:*refname --format=%(refname:short) --merged=${current} ${refPrefixPattern}${releasePattern}`;
const command = `git for-each-ref --sort=-v:*refname --format=%(refname:short) --merged=${current} ${refPrefixPattern}${releasePattern}`;
tag = await cmd(command);
tag = tag
.split('\n')