mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 11:24:14 +00:00
fix(git): when a Plugin.branch
is set, don't use config.defaults.version
. Fixes #409
This commit is contained in:
parent
c05d61d208
commit
bd37afc96e
1 changed files with 2 additions and 1 deletions
|
@ -131,7 +131,8 @@ function M.get_target(plugin)
|
||||||
commit = M.ref(plugin.dir, "tags/" .. plugin.tag),
|
commit = M.ref(plugin.dir, "tags/" .. plugin.tag),
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
local version = plugin.version == nil and Config.options.defaults.version or plugin.version
|
|
||||||
|
local version = (plugin.version == nil and plugin.branch == nil) and Config.options.defaults.version or plugin.version
|
||||||
if version then
|
if version then
|
||||||
local last = Semver.last(M.get_versions(plugin.dir, version))
|
local last = Semver.last(M.get_versions(plugin.dir, version))
|
||||||
if last then
|
if last then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue