fix: git_commits when a commit has no message (#529)
This commit is contained in:
@@ -297,6 +297,11 @@ function make_entry.gen_from_git_commits()
|
||||
|
||||
local sha, msg = string.match(entry, '([^ ]+) (.+)')
|
||||
|
||||
if not msg then
|
||||
sha = entry
|
||||
msg = "<empty commit message>"
|
||||
end
|
||||
|
||||
return {
|
||||
value = sha,
|
||||
ordinal = sha .. ' ' .. msg,
|
||||
|
||||
Reference in New Issue
Block a user