Skip to content

Commit

Permalink
Merge pull request #157 from theohbrothers/enhancement/generate-impro…
Browse files Browse the repository at this point in the history
…ve-tag-retrieval-for-function-get-repositoryreleaselatest

Enhancement (generate): Improve tag retrieval for function `Get-RepositoryReleaseLatest`
  • Loading branch information
joeltimothyoh authored Jul 19, 2024
2 parents ba406c0 + bd852b0 commit 0e0ba61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function Get-RepositoryReleaseLatest {
}elseif ($TagType -eq 'All') {
$tagPattern = '.+?'
}
$tagsLatestInfo = (git --no-pager log --date-order --simplify-by-decoration --pretty='format:%H %D' @gitArgs) -split "`n" | % {
$tagsLatestInfo = (git --no-pager log --date-order --pretty='format:%H %D' @gitArgs) -split "`n" | % {
if ($_ -match "\s+tag:\s+($tagPattern)(,\s+|$)") {
$_
}
Expand Down

0 comments on commit 0e0ba61

Please sign in to comment.