diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua index 4c0696f..bd1f622 100644 --- a/lua/telescope/make_entry.lua +++ b/lua/telescope/make_entry.lua @@ -297,6 +297,11 @@ function make_entry.gen_from_git_commits() local sha, msg = string.match(entry, '([^ ]+) (.+)') + if not msg then + sha = entry + msg = "" + end + return { value = sha, ordinal = sha .. ' ' .. msg,