fix(ui): always show branch name in details

This commit is contained in:
Folke Lemaitre 2022-12-03 21:06:50 +01:00
parent b2727d98a3
commit 6e44be0f2d
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 0 deletions

View File

@ -361,6 +361,7 @@ function M:details(plugin)
table.insert(props, { "uri", (plugin.uri:gsub("%.git$", "")), "@text.reference" })
local git = Git.info(plugin.dir, true)
if git then
git.branch = git.branch or Git.get_branch(plugin)
if git.version then
table.insert(props, { "version", tostring(git.version) })
end