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,8 +1,3 @@
$tagCount = $(git rev-list --tags='*.*.*' --count)
if ($tagCount -eq 0) {
$latestVersion = "0.0.0"
}
else {
$latestVersions = $(git describe --tags $(git tag --merged master) --abbrev=0) $latestVersions = $(git describe --tags $(git tag --merged master) --abbrev=0)
$latestVersion = [version]"0.0.0" $latestVersion = [version]"0.0.0"
Foreach ($version in $latestVersions) { Foreach ($version in $latestVersions) {
@@ -17,7 +12,7 @@ else {
continue; continue;
} }
} }
}
$newVersion = [version]$latestVersion $newVersion = [version]$latestVersion
$phase = "" $phase = ""
$newVersionString = "" $newVersionString = ""