diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/make_entry.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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 = "<empty commit message>" + end + return { value = sha, ordinal = sha .. ' ' .. msg, |
