From 2365feeff7a9f3914faf2c76cb182cf850f6ed68 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 20 Sep 2024 14:23:16 -0700
Subject: [PATCH] Reduce the size of external dependency downloads
---
external/Get-GitModules.ps1 | 4 ++--
external/download.sh | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/external/Get-GitModules.ps1 b/external/Get-GitModules.ps1
index c43f6375..7238700d 100644
--- a/external/Get-GitModules.ps1
+++ b/external/Get-GitModules.ps1
@@ -29,8 +29,8 @@ foreach ($Line in Get-Content $PSScriptRoot\..\.gitmodules) {
$Match = Select-String -InputObject $Line -Pattern $BranchRegex
$Branch = $Match.Matches[0].Groups[1].Value
- Write-Host "git clone $URL $Path -b $Branch --recursive" `
+ Write-Host "git clone --filter=blob:none $URL $Path -b $Branch --recursive" `
-ForegroundColor Blue
- git clone $URL $PSScriptRoot/../$Path -b $Branch --recursive
+ git clone --filter=blob:none $URL $PSScriptRoot/../$Path -b $Branch --recursive
}
}
diff --git a/external/download.sh b/external/download.sh
index 5cd14a4d..df63ee46 100755
--- a/external/download.sh
+++ b/external/download.sh
@@ -12,5 +12,5 @@ while true; do
url=$3
read line; set -- $line
branch=$3
- git clone $url $path -b $branch --recursive
+ git clone --filter=blob:none $url $path -b $branch --recursive
done