From f54a7178df0618d67e34d22261345ee1a1a51574 Mon Sep 17 00:00:00 2001 From: "max.farver" Date: Thu, 14 Aug 2025 10:22:28 -0500 Subject: [PATCH] remove --recurse-submodules --- lua/lazy/manage/task/git.lua | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lua/lazy/manage/task/git.lua b/lua/lazy/manage/task/git.lua index ef848f9..4d0257c 100644 --- a/lua/lazy/manage/task/git.lua +++ b/lua/lazy/manage/task/git.lua @@ -140,10 +140,6 @@ M.clone = { args[#args + 1] = "--filter=blob:none" end - if self.plugin.submodules ~= false then - args[#args + 1] = "--recurse-submodules" - end - args[#args + 1] = "--origin=origin" -- If git config --global core.autocrlf is true on a Unix/Linux system, then the git clone @@ -283,16 +279,11 @@ M.fetch = { throttle.wait() local args = { "fetch", - "--recurse-submodules", "--tags", -- also fetch remote tags "--force", -- overwrite existing tags if needed "--progress", } - if self.plugin.submodules == false then - table.remove(args, 2) - end - self:spawn("git", { args = args, cwd = self.plugin.dir, @@ -348,13 +339,8 @@ M.checkout = { local args = { "checkout", "--progress", - "--recurse-submodules", } - if self.plugin.submodules == false then - table.remove(args, 3) - end - if lock then table.insert(args, lock.commit) elseif target.tag then