mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-16 17:51:28 +01:00
Update list-tags.ps1
This commit is contained in:
parent
28833ae2a8
commit
67a273f06e
@ -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"
|
||||
"--- -----------"
|
||||
|
Loading…
Reference in New Issue
Block a user