mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-31 19:26:27 +02:00
Add git fetch
This commit is contained in:
parent
dd5b74feed
commit
673779a2b9
@ -23,6 +23,9 @@ try {
|
|||||||
if (-not(test-path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" }
|
if (-not(test-path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" }
|
||||||
set-location "$RepoDir"
|
set-location "$RepoDir"
|
||||||
|
|
||||||
|
& git fetch --all --recurse-submodules
|
||||||
|
if ($lastExitCode -ne "0") { throw "'git fetch --all --recurse-submodules' failed" }
|
||||||
|
|
||||||
& 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" }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user