Skip to content

Commit

Permalink
fix(git): always get both tag and version
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 31, 2022
1 parent 865ff41 commit cb29427
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/lazy/manage/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ function M.info(repo, details)
for tag, tag_ref in pairs(M.get_tag_refs(repo)) do
if tag_ref == ret.commit then
ret.tag = tag
ret.version = Semver.version(tag)
break
ret.version = ret.version or Semver.version(tag)
end
end
end
Expand Down

0 comments on commit cb29427

Please sign in to comment.