removed check for tag count

This commit is contained in:
Andrew Welker
2020-03-16 13:43:57 -06:00
parent 46f775e584
commit 13205833e8

View File

@@ -1,11 +1,6 @@
$tagCount = $(git rev-list --tags='*.*.*' --count) $latestVersions = $(git describe --tags $(git tag --merged master) --abbrev=0)
if ($tagCount -eq 0) { $latestVersion = [version]"0.0.0"
$latestVersion = "0.0.0" Foreach ($version in $latestVersions) {
}
else {
$latestVersions = $(git describe --tags $(git tag --merged master) --abbrev=0)
$latestVersion = [version]"0.0.0"
Foreach ($version in $latestVersions) {
Write-Host $version Write-Host $version
try { try {
if (([version]$version) -ge $latestVersion) { if (([version]$version) -ge $latestVersion) {
@@ -16,8 +11,8 @@ else {
Write-Host "Unable to convert $($version). Skipping" Write-Host "Unable to convert $($version). Skipping"
continue; continue;
} }
}
} }
$newVersion = [version]$latestVersion $newVersion = [version]$latestVersion
$phase = "" $phase = ""
$newVersionString = "" $newVersionString = ""