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

@ -16,7 +16,7 @@ Libs, opencv, master, yes, "https://github.com/opencv/opencv"
Tool, operating-systems,main, no, "git@github.com:fleschutz/operating-systems.git"
Shell, PowerShell, master, no, "git@github.com:fleschutz/PowerShell.git"
Shell, pwsh, master, yes, "https://github.com/PowerShell/PowerShell"
Dev, protobuf, master, yes, "https://github.com/protocolbuffers/protobuf"
Dev, protobuf, main, yes, "git@github.com:protocolbuffers/protobuf"
Dev, rust, master, yes, "https://github.com/rust-lang/rust"
Tool, smartmontools, master, yes, "https://github.com/smartmontools/smartmontools"
Tool, talk2windows, main, no, "git@github.com:fleschutz/talk2windows.git"

Can't render this file because it has a wrong number of fields in line 2.

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" }
}