Skip to content

Commit

Permalink
Reduce the size of external dependency downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 20, 2024
1 parent 66a206c commit 2365fee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions external/Get-GitModules.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
2 changes: 1 addition & 1 deletion external/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2365fee

Please sign in to comment.