Skip to content

Commit f36c7cb

Browse files
committedJan 3, 2023
feat(version): allow version=false to override default version
1 parent 7b9fa28 commit f36c7cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lua/lazy/manage/git.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function M.get_target(plugin)
131131
commit = M.ref(plugin.dir, "tags/" .. plugin.tag),
132132
}
133133
end
134-
local version = plugin.version or Config.options.defaults.version
134+
local version = plugin.version == nil and Config.options.defaults.version or plugin.version
135135
if version then
136136
local last = Semver.last(M.get_versions(plugin.dir, version))
137137
if last then

0 commit comments

Comments
 (0)
Please sign in to comment.