vpm: optimize performance by adding filter when cloning (#21216)

This commit is contained in:
Turiiya 2024-04-07 16:11:58 +02:00 committed by GitHub
parent 4056353381
commit 38353088e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@ const vcs_info = {
VCS.git: VCSInfo{ VCS.git: VCSInfo{
dir: '.git' dir: '.git'
args: struct { args: struct {
install: 'clone --depth=1 --recursive --shallow-submodules' install: 'clone --depth=1 --recursive --shallow-submodules --filter=blob:none --also-filter-submodules'
version: '--single-branch -b' version: '--single-branch -b'
update: 'pull --recurse-submodules' // pulling with `--depth=1` leads to conflicts when the upstream has more than 1 new commits. update: 'pull --recurse-submodules' // pulling with `--depth=1` leads to conflicts when the upstream has more than 1 new commits.
path: '-C' path: '-C'