From cb29427926121922eb6cc669d22897f7bc9687f1 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 31 Dec 2022 09:36:08 +0100 Subject: [PATCH] fix(git): always get both tag and version --- lua/lazy/manage/git.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/lazy/manage/git.lua b/lua/lazy/manage/git.lua index 96fe208..54f14b4 100644 --- a/lua/lazy/manage/git.lua +++ b/lua/lazy/manage/git.lua @@ -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