From 38353088e078b4682cd415bdfa32dda8ad7ea7a8 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sun, 7 Apr 2024 16:11:58 +0200 Subject: [PATCH] vpm: optimize performance by adding filter when cloning (#21216) --- cmd/tools/vpm/vcs.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tools/vpm/vcs.v b/cmd/tools/vpm/vcs.v index 743329014a..3d4e3cdd60 100644 --- a/cmd/tools/vpm/vcs.v +++ b/cmd/tools/vpm/vcs.v @@ -23,7 +23,7 @@ const vcs_info = { VCS.git: VCSInfo{ dir: '.git' 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' update: 'pull --recurse-submodules' // pulling with `--depth=1` leads to conflicts when the upstream has more than 1 new commits. path: '-C'