mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-25 16:18:55 +01:00
Update list-tags.ps1
This commit is contained in:
parent
43b01111ab
commit
873ec7818f
@ -13,15 +13,14 @@ try {
|
||||
$Null = (git --version)
|
||||
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
||||
|
||||
$RepoDirName = (get-item "$RepoDir").Name
|
||||
"🢃 Fetching updates for Git repository 📂$RepoDirName ..."
|
||||
|
||||
& git -C "$RepoDir" fetch --all
|
||||
"🢃 Fetching updates..."
|
||||
& git -C "$RepoDir" fetch --all --quiet
|
||||
if ($lastExitCode -ne "0") { throw "'git fetch --all' failed" }
|
||||
|
||||
write-output ""
|
||||
write-output "Git Tags"
|
||||
write-output "--------"
|
||||
$RepoDirName = (get-item "$RepoDir").Name
|
||||
[system.threading.thread]::currentthread.currentculture=[system.globalization.cultureinfo]"en-US"
|
||||
""
|
||||
"🔖 Tags in Git repository 📂$RepoDirName as of $((Get-Date).ToShortDateString()):"
|
||||
|
||||
& git -C "$RepoDir" tag --list "$Pattern" --column
|
||||
if ($lastExitCode -ne "0") { throw "'git tag --list' failed" }
|
||||
|
Loading…
Reference in New Issue
Block a user