Update clone-repos.ps1

This commit is contained in:
Markus Fleschutz 2022-04-27 15:29:06 +02:00
parent 151c5f73c0
commit 0c4d8c927d
2 changed files with 35 additions and 35 deletions

View File

@ -1,27 +1,27 @@
Category,FolderName, Branch, Shallow, URL
Dev, base256unicode,main, no, "git@github.com:fleschutz/base256unicode.git"
Dev, bazel, master, yes, "https://github.com/bazelbuild/bazel"
Dev, cmake, master, yes, "https://github.com/Kitware/CMake"
Fun, cmatrix, master, yes, "https://github.com/abishekvashok/cmatrix"
Tool, cmark, master, yes, "https://github.com/commonmark/cmark"
Dev, CWTS, master, no, "git@github.com:fleschutz/CWTS.git"
Tool, elasticsearch, master, yes, "https://github.com/elastic/elasticsearch"
Tool, go-ipfs, master, yes, "https://github.com/ipfs/go-ipfs"
Tool, grafana, main, yes, "https://github.com/grafana/grafana"
Tool, leon, master, yes, "https://github.com/leon-ai/leon"
Dev, llvm, master, yes, "https://github.com/llvm/llvm-project"
Math, LSS, master, yes, "git@github.com:fleschutz/LSS.git"
Dev, ninja, master, yes, "git@github.com:ninja-build/ninja.git"
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, 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"
Tool, tensorflow, master, yes, "https://github.com/tensorflow/tensorflow"
Tool, terminal, main, yes, "https://github.com/microsoft/terminal"
Dev, tinycc, mob, yes, "https://github.com/TinyCC/tinycc"
Tool, voice2json, master, yes, "https://github.com/synesthesiam/voice2json"
Tool, zfs, master, yes, "https://github.com/openzfs/zfs"
Category,FolderName, Branch, Full, URL
Dev, base256unicode,main, yes, "git@github.com:fleschutz/base256unicode.git"
Dev, bazel, master, no, "https://github.com/bazelbuild/bazel"
Dev, cmake, master, no, "https://github.com/Kitware/CMake"
Fun, cmatrix, master, no, "https://github.com/abishekvashok/cmatrix"
Tool, cmark, master, no, "https://github.com/commonmark/cmark"
Dev, CWTS, master, yes, "git@github.com:fleschutz/CWTS.git"
Tool, elasticsearch, master, no, "https://github.com/elastic/elasticsearch"
Tool, go-ipfs, master, no, "https://github.com/ipfs/go-ipfs"
Tool, grafana, main, no, "https://github.com/grafana/grafana"
Tool, leon, master, no, "https://github.com/leon-ai/leon"
Dev, llvm, master, no, "https://github.com/llvm/llvm-project"
Math, LSS, master, no, "git@github.com:fleschutz/LSS.git"
Dev, ninja, master, no, "git@github.com:ninja-build/ninja.git"
Libs, opencv, master, no, "https://github.com/opencv/opencv"
Tool, operating-systems,main, yes, "git@github.com:fleschutz/operating-systems.git"
Shell, PowerShell, master, yes, "git@github.com:fleschutz/PowerShell.git"
Shell, pwsh, master, no, "https://github.com/PowerShell/PowerShell"
Dev, protobuf, main, no, "git@github.com:protocolbuffers/protobuf"
Dev, rust, master, no, "https://github.com/rust-lang/rust"
Tool, smartmontools, master, no, "https://github.com/smartmontools/smartmontools"
Tool, talk2windows, main, yes, "git@github.com:fleschutz/talk2windows.git"
Tool, tensorflow, master, no, "https://github.com/tensorflow/tensorflow"
Tool, terminal, main, no, "https://github.com/microsoft/terminal"
Dev, tinycc, mob, no, "https://github.com/TinyCC/tinycc"
Tool, voice2json, master, no, "https://github.com/synesthesiam/voice2json"
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.

View File

@ -35,7 +35,7 @@ try {
foreach($Row in $Table) {
[string]$FolderName = $Row.FolderName
[string]$Branch = $Row.Branch
[string]$Shallow = $Row.Shallow
[string]$Full = $Row.Full
[string]$URL = $Row.URL
$Step++
@ -44,14 +44,14 @@ try {
$Skipped++
continue
}
if ($Shallow -eq "yes") {
"⏳ 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)..."
if ($Full -eq "yes") {
"⏳ Step $Step/$($NumEntries): Cloning 📂$($FolderName) ($Branch branch with full history)..."
& 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++
}