Add --force to git fetch

This commit is contained in:
Markus Fleschutz
2021-10-06 09:10:49 +02:00
parent d2889b1b57
commit 9e448e6a90
4 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ try {
if ("$Result" -notmatch "nothing to commit, working tree clean") { throw "Git repository is NOT clean: $Result" }
"⏳ Step 2/3: Fetching latest updates and switching branch..."
& git fetch --all --recurse-submodules --prune --prune-tags
& git fetch --all --recurse-submodules --prune --prune-tags --force
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
& git checkout --recurse-submodules "$BranchName"