mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-17 02:01:01 +01:00
Update clone-repos.ps1
This commit is contained in:
parent
f1993cad42
commit
a48756dc3e
@ -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.
|
@ -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" }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user