diff --git a/Scripts/switch-branch.ps1 b/Scripts/switch-branch.ps1 index 52433bd7..1b69209e 100755 --- a/Scripts/switch-branch.ps1 +++ b/Scripts/switch-branch.ps1 @@ -21,8 +21,8 @@ try { if ("$Result" -notmatch "nothing to commit, working tree clean") { throw "Git repository is NOT clean: $Result" } "🢃 Fetching updates..." - & git fetch --all --recurse-submodules --jobs=4 - if ($lastExitCode -ne "0") { throw "'git fetch -all --recurse-submodules' failed" } + & git fetch --all --recurse-submodules --prune --prune-tags + if ($lastExitCode -ne "0") { throw "'git fetch' failed" } & git checkout --recurse-submodules "$BranchName" if ($lastExitCode -ne "0") { throw "'git switch $BranchName' failed" }