diff --git a/lua/neogit/lib/git/log.lua b/lua/neogit/lib/git/log.lua index a90cc5781..25d1e5b91 100644 --- a/lua/neogit/lib/git/log.lua +++ b/lua/neogit/lib/git/log.lua @@ -215,10 +215,12 @@ local function parse_log(output, graph) local oid = graph[i][1].oid if oid then local commit = commit_lookup[oid] - assert(commit, "No commit found for oid: " .. oid) - - table.insert(commits, make_commit(commit, graph[i])) - current_commit = current_commit + 1 + if commit then + table.insert(commits, make_commit(commit, graph[i])) + current_commit = current_commit + 1 + else + table.insert(commits, { graph = graph[i] }) + end else table.insert(commits, { graph = graph[i] }) end