mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-08-20 00:01:02 +00:00
remove --recurse-submodules
This commit is contained in:
parent
6c3bda4aca
commit
f54a7178df
1 changed files with 0 additions and 14 deletions
|
@ -140,10 +140,6 @@ M.clone = {
|
||||||
args[#args + 1] = "--filter=blob:none"
|
args[#args + 1] = "--filter=blob:none"
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.plugin.submodules ~= false then
|
|
||||||
args[#args + 1] = "--recurse-submodules"
|
|
||||||
end
|
|
||||||
|
|
||||||
args[#args + 1] = "--origin=origin"
|
args[#args + 1] = "--origin=origin"
|
||||||
|
|
||||||
-- If git config --global core.autocrlf is true on a Unix/Linux system, then the git clone
|
-- 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()
|
throttle.wait()
|
||||||
local args = {
|
local args = {
|
||||||
"fetch",
|
"fetch",
|
||||||
"--recurse-submodules",
|
|
||||||
"--tags", -- also fetch remote tags
|
"--tags", -- also fetch remote tags
|
||||||
"--force", -- overwrite existing tags if needed
|
"--force", -- overwrite existing tags if needed
|
||||||
"--progress",
|
"--progress",
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.plugin.submodules == false then
|
|
||||||
table.remove(args, 2)
|
|
||||||
end
|
|
||||||
|
|
||||||
self:spawn("git", {
|
self:spawn("git", {
|
||||||
args = args,
|
args = args,
|
||||||
cwd = self.plugin.dir,
|
cwd = self.plugin.dir,
|
||||||
|
@ -348,13 +339,8 @@ M.checkout = {
|
||||||
local args = {
|
local args = {
|
||||||
"checkout",
|
"checkout",
|
||||||
"--progress",
|
"--progress",
|
||||||
"--recurse-submodules",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.plugin.submodules == false then
|
|
||||||
table.remove(args, 3)
|
|
||||||
end
|
|
||||||
|
|
||||||
if lock then
|
if lock then
|
||||||
table.insert(args, lock.commit)
|
table.insert(args, lock.commit)
|
||||||
elseif target.tag then
|
elseif target.tag then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue