We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Plugin.branch
config.defaults.version
1 parent c05d61d commit bd37afcCopy full SHA for bd37afc
lua/lazy/manage/git.lua
@@ -131,7 +131,8 @@ function M.get_target(plugin)
131
commit = M.ref(plugin.dir, "tags/" .. plugin.tag),
132
}
133
end
134
- local version = plugin.version == nil and Config.options.defaults.version or plugin.version
+
135
+ local version = (plugin.version == nil and plugin.branch == nil) and Config.options.defaults.version or plugin.version
136
if version then
137
local last = Semver.last(M.get_versions(plugin.dir, version))
138
if last then
0 commit comments