mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-15 06:28:17 +02:00
Improved switch-branch.ps1
This commit is contained in:
parent
d42130d598
commit
2cd0fcea5a
@ -23,8 +23,11 @@ try {
|
|||||||
& git switch --recurse-submodules $Branch
|
& git switch --recurse-submodules $Branch
|
||||||
if ($lastExitCode -ne "0") { throw "'git switch --recurse-submodules $Branch' failed" }
|
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
|
& git pull --recurse-submodules
|
||||||
if ($lastExitCode -ne "0") { throw "'git pull --recurse-submodules' failed" }
|
if ($lastExitCode -ne "0") { throw "'git pull' failed" }
|
||||||
|
|
||||||
& git status
|
& git status
|
||||||
if ($lastExitCode -ne "0") { throw "'git status' failed" }
|
if ($lastExitCode -ne "0") { throw "'git status' failed" }
|
||||||
|
Loading…
Reference in New Issue
Block a user