Improved switch-branch.ps1

This commit is contained in:
Markus Fleschutz 2021-02-15 11:34:05 +01:00
parent d42130d598
commit 2cd0fcea5a

View File

@ -23,8 +23,11 @@ try {
& git switch --recurse-submodules $Branch
if ($lastExitCode -ne "0") { throw "'git switch --recurse-submodules $Branch' failed" }
& git submodule update --init --recursive
if ($lastExitCode -ne "0") { throw "'git submodule update' failed" }
& git pull --recurse-submodules
if ($lastExitCode -ne "0") { throw "'git pull --recurse-submodules' failed" }
if ($lastExitCode -ne "0") { throw "'git pull' failed" }
& git status
if ($lastExitCode -ne "0") { throw "'git status' failed" }