Adding shallow option to git clone step

This commit is contained in:
Murilo Ghignatti 2023-07-25 07:55:28 -03:00
commit a0cbebc434
2 changed files with 5 additions and 0 deletions

View file

@ -67,6 +67,10 @@ M.clone = {
self.plugin.url,
}
if self.plugin.shallow ~= false then
args[#args+1] = "--depth=1"
end
if Config.options.git.filter then
args[#args + 1] = "--filter=blob:none"
end

View file

@ -32,6 +32,7 @@
---@field module? false
---@class LazyPluginRef
---@field shallow? boolean clones the plugin with --depth=1
---@field branch? string
---@field tag? string
---@field commit? string