From 8826b755066cf238d8927c0b76a556c2bc20a2ff Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 15 Mar 2021 12:35:47 +0100 Subject: [PATCH] Update list-branches.ps1 --- Scripts/list-branches.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/list-branches.ps1 b/Scripts/list-branches.ps1 index f9814d0d..dee6bcbd 100755 --- a/Scripts/list-branches.ps1 +++ b/Scripts/list-branches.ps1 @@ -9,7 +9,7 @@ param($RepoDir = "$PWD", $Pattern = "*") try { - write-output "Listing Git branches of repository $RepoDir ..." + write-output "Listing Git branches in repository $RepoDir ..." if (-not(test-path "$RepoDir")) { throw "Can't access Git repository at: $RepoDir" } set-location $RepoDir @@ -17,7 +17,7 @@ try { $null = (git --version) if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" } - & git fetch --all --recurse-submodules + $null = (git fetch --all --recurse-submodules) if ($lastExitCode -ne "0") { throw "'git fetch --all --recurse-submodules' failed" } $Branches = $(git branch --list --remotes --no-color --no-column)