fix: git_commits when a commit has no message (#529)

This commit is contained in:
Danilo Luvizotto
2021-02-12 19:23:13 +01:00
committed by GitHub
parent 3a7fa41857
commit b075d0d2b6

View File

@@ -297,6 +297,11 @@ function make_entry.gen_from_git_commits()
local sha, msg = string.match(entry, '([^ ]+) (.+)') local sha, msg = string.match(entry, '([^ ]+) (.+)')
if not msg then
sha = entry
msg = "<empty commit message>"
end
return { return {
value = sha, value = sha,
ordinal = sha .. ' ' .. msg, ordinal = sha .. ' ' .. msg,