fix(render): show message if not yet committed

This commit is contained in:
futsuuu 2023-03-31 16:46:54 +09:00
commit a1d1567ad9

View file

@ -499,7 +499,11 @@ function M:details(plugin)
if git.branch then
table.insert(props, { "branch", git.branch })
end
if git.commit then
table.insert(props, { "commit", git.commit:sub(1, 7), "LazyCommit" })
else
table.insert(props, { "commit", "No commits yet" })
end
end
if Util.file_exists(plugin.dir .. "/README.md") then
table.insert(props, { "readme", "README.md" })