Updated clone-repos.ps1

This commit is contained in:
Markus Fleschutz 2025-02-17 10:22:21 +01:00
parent 8c780998b6
commit c8bc801efa

View File

@ -10,7 +10,7 @@
(1) Searching for Git executable... git version 2.46.0.windows.1
(2) Reading data/popular-repos.csv... 29 repos
(3) Checking target folder... 📂Repos
(4/32) Cloning 📂base256 (dev tool) from git@github.com:fleschutz/talk2windows.git (shallow main branch)...
(4/32) Cloning 📂base256 (dev tool) from git@github.com:fleschutz/talk2windows.git (main branch only)...
...
.LINK
https://github.com/fleschutz/PowerShell
@ -51,7 +51,7 @@ try {
"⏳ ($step/$($total + 3)) Skipping 📂$folderName ($category): exists already"
$skipped++
} elseif ($shallow -eq "yes") {
"⏳ ($step/$($total + 3)) Cloning 📂$folderName ($category) from $URL (shallow $branch branch)..."
"⏳ ($step/$($total + 3)) Cloning 📂$folderName ($category) from $URL ($branch branch only)..."
& git clone --branch "$branch" --single-branch --recurse-submodules "$URL" "$targetDir/$folderName"
if ($lastExitCode -ne "0") { throw "'git clone --branch $branch $URL' failed with exit code $lastExitCode" }
$cloned++