mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-10 05:17:44 +02:00
Add --force to git fetch
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user