Update clone-repos.ps1

This commit is contained in:
Markus 2022-04-24 16:37:03 +02:00
parent eceb8c982b
commit f1993cad42

View File

@ -45,11 +45,11 @@ try {
continue
}
if ($Shallow -eq "yes") {
"⏳ Step $Step/$($NumEntries): Cloning shallow $Branch branch to 📂$($FolderName)..."
"⏳ 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 full $Branch branch to 📂$FolderName..."
"⏳ 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" }
}