Skip to content

Commit 2365fee

Browse files
committed
Reduce the size of external dependency downloads
1 parent 66a206c commit 2365fee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

external/Get-GitModules.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ foreach ($Line in Get-Content $PSScriptRoot\..\.gitmodules) {
2929
$Match = Select-String -InputObject $Line -Pattern $BranchRegex
3030
$Branch = $Match.Matches[0].Groups[1].Value
3131

32-
Write-Host "git clone $URL $Path -b $Branch --recursive" `
32+
Write-Host "git clone --filter=blob:none $URL $Path -b $Branch --recursive" `
3333
-ForegroundColor Blue
34-
git clone $URL $PSScriptRoot/../$Path -b $Branch --recursive
34+
git clone --filter=blob:none $URL $PSScriptRoot/../$Path -b $Branch --recursive
3535
}
3636
}

external/download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ while true; do
1212
url=$3
1313
read line; set -- $line
1414
branch=$3
15-
git clone $url $path -b $branch --recursive
15+
git clone --filter=blob:none $url $path -b $branch --recursive
1616
done

0 commit comments

Comments
 (0)