diff --git a/Scripts/fetch-repo.ps1 b/Scripts/fetch-repo.ps1 index 52fd5d4e..16104ab4 100755 --- a/Scripts/fetch-repo.ps1 +++ b/Scripts/fetch-repo.ps1 @@ -26,7 +26,7 @@ try { $Null = (git --version) if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" } - & git -C "$RepoDir" fetch --all --recurse-submodules --prune --prune-tags --jobs=4 + & git -C "$RepoDir" fetch --all --recurse-submodules --prune --prune-tags --force --jobs=4 if ($lastExitCode -ne "0") { throw "'git fetch' in $RepoDir failed" } $RepoDirName = (get-item "$RepoDir").Name diff --git a/Scripts/fetch-repos.ps1 b/Scripts/fetch-repos.ps1 index de6ef056..850a19c9 100755 --- a/Scripts/fetch-repos.ps1 +++ b/Scripts/fetch-repos.ps1 @@ -31,8 +31,8 @@ try { $FolderName = (get-item "$Folder").Name "⏳ Step $Step/$($FolderCount): Fetching 📂$FolderName..." - & git -C "$Folder" fetch --all --recurse-submodules --prune --prune-tags --jobs=4 - if ($lastExitCode -ne "0") { throw "'git fetch' failed" } + & git -C "$Folder" fetch --all --recurse-submodules --prune --prune-tags --force --jobs=4 + if ($lastExitCode -ne "0") { throw "'git fetch' in $Folder failed" } $Step++ }