Add git fetch

This commit is contained in:
Markus Fleschutz 2021-03-17 10:45:19 +01:00
parent dd5b74feed
commit 673779a2b9

View File

@ -23,6 +23,9 @@ try {
if (-not(test-path "$RepoDir" -pathType container)) { throw "Can't access directory: $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
if ($lastExitCode -ne "0") { throw "'git switch --recurse-submodules $Branch' failed" }