fix(git): always get both tag and version

This commit is contained in:
Folke Lemaitre 2022-12-31 09:36:08 +01:00
parent 865ff414c7
commit cb29427926
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 2 deletions

View File

@ -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