Update list-tags.ps1

This commit is contained in:
Markus Fleschutz 2021-10-04 13:04:13 +02:00
parent 28833ae2a8
commit 67a273f06e

View File

@ -2,7 +2,7 @@
.SYNOPSIS
list-tags.ps1 [<repo-dir>] [<pattern>]
.DESCRIPTION
Lists all tags in the current/given Git repository
Lists all tags in a Git repository.
.EXAMPLE
PS> ./list-tags C:\MyRepo
@ -24,10 +24,11 @@ try {
$Null = (git --version)
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
"🢃 Fetching latest tags..."
write-progress "🢃 Fetching latest tags..."
& git -C "$RepoDir" fetch --all --tags --quiet
if ($lastExitCode -ne "0") { throw "'git fetch --all --tags' failed" }
write-progress -completed "Fetched"
""
"Tag Description"
"--- -----------"