mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-23 02:18:21 +02:00
Update list-tags.ps1
This commit is contained in:
parent
28833ae2a8
commit
67a273f06e
@ -2,7 +2,7 @@
|
|||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-tags.ps1 [<repo-dir>] [<pattern>]
|
list-tags.ps1 [<repo-dir>] [<pattern>]
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Lists all tags in the current/given Git repository
|
Lists all tags in a Git repository.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-tags C:\MyRepo
|
PS> ./list-tags C:\MyRepo
|
||||||
|
|
||||||
@ -24,10 +24,11 @@ try {
|
|||||||
$Null = (git --version)
|
$Null = (git --version)
|
||||||
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
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
|
& git -C "$RepoDir" fetch --all --tags --quiet
|
||||||
if ($lastExitCode -ne "0") { throw "'git fetch --all --tags' failed" }
|
if ($lastExitCode -ne "0") { throw "'git fetch --all --tags' failed" }
|
||||||
|
|
||||||
|
write-progress -completed "Fetched"
|
||||||
""
|
""
|
||||||
"Tag Description"
|
"Tag Description"
|
||||||
"--- -----------"
|
"--- -----------"
|
||||||
|
Loading…
Reference in New Issue
Block a user