mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-15 22:48:17 +02:00
Add --force
This commit is contained in:
parent
28e29aeac8
commit
5ff59a45ef
@ -26,7 +26,7 @@ try {
|
|||||||
$Null = (git --version)
|
$Null = (git --version)
|
||||||
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
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" }
|
if ($lastExitCode -ne "0") { throw "'git fetch' in $RepoDir failed" }
|
||||||
|
|
||||||
$RepoDirName = (get-item "$RepoDir").Name
|
$RepoDirName = (get-item "$RepoDir").Name
|
||||||
|
@ -31,8 +31,8 @@ try {
|
|||||||
$FolderName = (get-item "$Folder").Name
|
$FolderName = (get-item "$Folder").Name
|
||||||
"⏳ Step $Step/$($FolderCount): Fetching 📂$FolderName..."
|
"⏳ Step $Step/$($FolderCount): Fetching 📂$FolderName..."
|
||||||
|
|
||||||
& git -C "$Folder" fetch --all --recurse-submodules --prune --prune-tags --jobs=4
|
& git -C "$Folder" fetch --all --recurse-submodules --prune --prune-tags --force --jobs=4
|
||||||
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
if ($lastExitCode -ne "0") { throw "'git fetch' in $Folder failed" }
|
||||||
|
|
||||||
$Step++
|
$Step++
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user