mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-25 05:17:44 +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:
parent
920180b51a
commit
66e0005fc1
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue