From 66e0005fc1a0b7af13dedde2634b42ff13d79d94 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 25 Apr 2024 17:07:27 -0400 Subject: [PATCH] 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. --- scripts/windows-setup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/windows-setup.ps1 b/scripts/windows-setup.ps1 index 9fd8e1d..83db52a 100644 --- a/scripts/windows-setup.ps1 +++ b/scripts/windows-setup.ps1 @@ -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"