mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-09 01:38:26 +02:00
Update clone-repos.ps1
This commit is contained in:
parent
151c5f73c0
commit
0c4d8c927d
@ -1,27 +1,27 @@
|
|||||||
Category,FolderName, Branch, Shallow, URL
|
Category,FolderName, Branch, Full, URL
|
||||||
Dev, base256unicode,main, no, "git@github.com:fleschutz/base256unicode.git"
|
Dev, base256unicode,main, yes, "git@github.com:fleschutz/base256unicode.git"
|
||||||
Dev, bazel, master, yes, "https://github.com/bazelbuild/bazel"
|
Dev, bazel, master, no, "https://github.com/bazelbuild/bazel"
|
||||||
Dev, cmake, master, yes, "https://github.com/Kitware/CMake"
|
Dev, cmake, master, no, "https://github.com/Kitware/CMake"
|
||||||
Fun, cmatrix, master, yes, "https://github.com/abishekvashok/cmatrix"
|
Fun, cmatrix, master, no, "https://github.com/abishekvashok/cmatrix"
|
||||||
Tool, cmark, master, yes, "https://github.com/commonmark/cmark"
|
Tool, cmark, master, no, "https://github.com/commonmark/cmark"
|
||||||
Dev, CWTS, master, no, "git@github.com:fleschutz/CWTS.git"
|
Dev, CWTS, master, yes, "git@github.com:fleschutz/CWTS.git"
|
||||||
Tool, elasticsearch, master, yes, "https://github.com/elastic/elasticsearch"
|
Tool, elasticsearch, master, no, "https://github.com/elastic/elasticsearch"
|
||||||
Tool, go-ipfs, master, yes, "https://github.com/ipfs/go-ipfs"
|
Tool, go-ipfs, master, no, "https://github.com/ipfs/go-ipfs"
|
||||||
Tool, grafana, main, yes, "https://github.com/grafana/grafana"
|
Tool, grafana, main, no, "https://github.com/grafana/grafana"
|
||||||
Tool, leon, master, yes, "https://github.com/leon-ai/leon"
|
Tool, leon, master, no, "https://github.com/leon-ai/leon"
|
||||||
Dev, llvm, master, yes, "https://github.com/llvm/llvm-project"
|
Dev, llvm, master, no, "https://github.com/llvm/llvm-project"
|
||||||
Math, LSS, master, yes, "git@github.com:fleschutz/LSS.git"
|
Math, LSS, master, no, "git@github.com:fleschutz/LSS.git"
|
||||||
Dev, ninja, master, yes, "git@github.com:ninja-build/ninja.git"
|
Dev, ninja, master, no, "git@github.com:ninja-build/ninja.git"
|
||||||
Libs, opencv, master, yes, "https://github.com/opencv/opencv"
|
Libs, opencv, master, no, "https://github.com/opencv/opencv"
|
||||||
Tool, operating-systems,main, no, "git@github.com:fleschutz/operating-systems.git"
|
Tool, operating-systems,main, yes, "git@github.com:fleschutz/operating-systems.git"
|
||||||
Shell, PowerShell, master, no, "git@github.com:fleschutz/PowerShell.git"
|
Shell, PowerShell, master, yes, "git@github.com:fleschutz/PowerShell.git"
|
||||||
Shell, pwsh, master, yes, "https://github.com/PowerShell/PowerShell"
|
Shell, pwsh, master, no, "https://github.com/PowerShell/PowerShell"
|
||||||
Dev, protobuf, main, yes, "git@github.com:protocolbuffers/protobuf"
|
Dev, protobuf, main, no, "git@github.com:protocolbuffers/protobuf"
|
||||||
Dev, rust, master, yes, "https://github.com/rust-lang/rust"
|
Dev, rust, master, no, "https://github.com/rust-lang/rust"
|
||||||
Tool, smartmontools, master, yes, "https://github.com/smartmontools/smartmontools"
|
Tool, smartmontools, master, no, "https://github.com/smartmontools/smartmontools"
|
||||||
Tool, talk2windows, main, no, "git@github.com:fleschutz/talk2windows.git"
|
Tool, talk2windows, main, yes, "git@github.com:fleschutz/talk2windows.git"
|
||||||
Tool, tensorflow, master, yes, "https://github.com/tensorflow/tensorflow"
|
Tool, tensorflow, master, no, "https://github.com/tensorflow/tensorflow"
|
||||||
Tool, terminal, main, yes, "https://github.com/microsoft/terminal"
|
Tool, terminal, main, no, "https://github.com/microsoft/terminal"
|
||||||
Dev, tinycc, mob, yes, "https://github.com/TinyCC/tinycc"
|
Dev, tinycc, mob, no, "https://github.com/TinyCC/tinycc"
|
||||||
Tool, voice2json, master, yes, "https://github.com/synesthesiam/voice2json"
|
Tool, voice2json, master, no, "https://github.com/synesthesiam/voice2json"
|
||||||
Tool, zfs, master, yes, "https://github.com/openzfs/zfs"
|
Tool, zfs, master, no, "https://github.com/openzfs/zfs"
|
||||||
|
Can't render this file because it has a wrong number of fields in line 2.
|
@ -35,7 +35,7 @@ try {
|
|||||||
foreach($Row in $Table) {
|
foreach($Row in $Table) {
|
||||||
[string]$FolderName = $Row.FolderName
|
[string]$FolderName = $Row.FolderName
|
||||||
[string]$Branch = $Row.Branch
|
[string]$Branch = $Row.Branch
|
||||||
[string]$Shallow = $Row.Shallow
|
[string]$Full = $Row.Full
|
||||||
[string]$URL = $Row.URL
|
[string]$URL = $Row.URL
|
||||||
$Step++
|
$Step++
|
||||||
|
|
||||||
@ -44,14 +44,14 @@ try {
|
|||||||
$Skipped++
|
$Skipped++
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if ($Shallow -eq "yes") {
|
if ($Full -eq "yes") {
|
||||||
"⏳ Step $Step/$($NumEntries): Cloning 📂$($FolderName) (shallow '$Branch' branch)..."
|
"⏳ Step $Step/$($NumEntries): Cloning 📂$($FolderName) ($Branch branch with full history)..."
|
||||||
& 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)..."
|
|
||||||
& 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 --branch $Branch $URL' failed with exit code $lastExitCode" }
|
||||||
|
} else {
|
||||||
|
"⏳ Step $Step/$($NumEntries): Cloning 📂$FolderName ($Branch branch only)..."
|
||||||
|
& git clone --branch "$Branch" --single-branch --recurse-submodules "$URL" "$FolderPath/$FolderName"
|
||||||
|
if ($lastExitCode -ne "0") { throw "'git clone --branch $Branch $URL' failed with exit code $lastExitCode" }
|
||||||
}
|
}
|
||||||
$Cloned++
|
$Cloned++
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user