mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-23 14:18:38 +01:00
Update clone-repos.ps1
This commit is contained in:
parent
eceb8c982b
commit
f1993cad42
@ -45,11 +45,11 @@ try {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if ($Shallow -eq "yes") {
|
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"
|
& git clone --branch "$Branch" --depth 1 --shallow-submodules --recurse-submodules "$URL" "$FolderPath/$FolderName"
|
||||||
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
|
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
|
||||||
} else {
|
} 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"
|
& git clone --branch "$Branch" --recurse-submodules "$URL" "$FolderPath/$FolderName"
|
||||||
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
|
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user