mirror of https://github.com/folke/lazy.nvim.git
fix(git): always get both tag and version
This commit is contained in:
parent
865ff414c7
commit
cb29427926
|
@ -24,8 +24,7 @@ function M.info(repo, details)
|
||||||
for tag, tag_ref in pairs(M.get_tag_refs(repo)) do
|
for tag, tag_ref in pairs(M.get_tag_refs(repo)) do
|
||||||
if tag_ref == ret.commit then
|
if tag_ref == ret.commit then
|
||||||
ret.tag = tag
|
ret.tag = tag
|
||||||
ret.version = Semver.version(tag)
|
ret.version = ret.version or Semver.version(tag)
|
||||||
break
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue