Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions lua/neogit/lib/git/log.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading