We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed221ed commit dab4eacCopy full SHA for dab4eac
lua/neogit/lib/git/branch.lua
@@ -375,7 +375,7 @@ local function update_branch_information(state)
375
state.head.oid = status.oid
376
state.head.detached = status.detached
377
378
- if status.oid ~= INITIAL_COMMIT then
+ if status.oid and status.oid ~= INITIAL_COMMIT then
379
state.head.abbrev = git.rev_parse.abbreviate_commit(status.oid)
380
state.head.commit_message = git.log.message(status.oid)
381
0 commit comments