Update clone-repos.ps1

This commit is contained in:
Markus
2022-04-24 16:56:03 +02:00
parent f1993cad42
commit a48756dc3e
2 changed files with 3 additions and 3 deletions

View File

@ -45,11 +45,11 @@ try {
continue
}
if ($Shallow -eq "yes") {
"⏳ Step $Step/$($NumEntries): Cloning 📂$($FolderName) (shallow $Branch branch)..."
"⏳ Step $Step/$($NumEntries): Cloning 📂$($FolderName) (shallow '$Branch' branch)..."
& git clone --branch "$Branch" --depth 1 --shallow-submodules --recurse-submodules "$URL" "$FolderPath/$FolderName"
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
} else {
"⏳ Step $Step/$($NumEntries): Cloning 📂$FolderName (full $Branch branch)..."
"⏳ Step $Step/$($NumEntries): Cloning 📂$FolderName (full '$Branch' branch)..."
& git clone --branch "$Branch" --recurse-submodules "$URL" "$FolderPath/$FolderName"
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
}