1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-24 21:07:46 +00:00

Do shallow clones when using windows-setup.ps1

These library clones aren't meant for real development, so there's no
reason to download more than the current commit.
This commit is contained in:
Joshua Goins 2024-04-25 17:07:27 -04:00
parent 920180b51a
commit 66e0005fc1

View file

@ -16,7 +16,7 @@ function Clone($Name, $Url) {
if (Test-Path "$LocalDir/$Name") {
Write-Information "Skipping clone of $Name because it's source directory already exists"
} else {
git clone $Url "$LocalDir/$Name"
git clone --depth=1 $Url "$LocalDir/$Name"
if ($LASTEXITCODE -ne 0) {
throw "Failed to clone $Name from $Url"