Fixed list-tags.ps1

This commit is contained in:
Markus Fleschutz 2023-08-21 08:36:12 +02:00
parent 6d75ce1ec5
commit 07ddbc78a7

View File

@ -30,10 +30,11 @@ try {
Write-Progress "⏳ (2/3) Checking local repository... "
if (-not(Test-Path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" }
Write-Progress "⏳ (3/3) Fetching latest tags..."
& git -C "$RepoDir" fetch --tags
if ($lastExitCode -ne "0") { throw "'git fetch --tags' failed" }
Write-Progress -completed "."
Write-Progress "⏳ (3/3) Fetching remote tags..."
& git -C "$RepoDir" fetch --all --tags
Write-Progress -completed "Done."
if ($lastExitCode -ne "0") { throw "'git fetch --all --tags' failed" }
""
"Tag Description"
"--- -----------"