Skip to content

Commit

Permalink
feat(version): allow version=false to override default version
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 3, 2023
1 parent 7b9fa28 commit f36c7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/manage/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function M.get_target(plugin)
commit = M.ref(plugin.dir, "tags/" .. plugin.tag),
}
end
local version = plugin.version or Config.options.defaults.version
local version = plugin.version == nil and Config.options.defaults.version or plugin.version
if version then
local last = Semver.last(M.get_versions(plugin.dir, version))
if last then
Expand Down

0 comments on commit f36c7cb

Please sign in to comment.