mirror of
https://github.com/lewis6991/gitsigns.nvim
synced 2024-09-16 14:34:09 +02:00
fix: add nil check
This commit is contained in:
parent
375c44bdfd
commit
7178d1a430
1 changed files with 6 additions and 1 deletions
|
@ -88,7 +88,12 @@ end
|
|||
|
||||
--- @async
|
||||
function M:update_abbrev_head()
|
||||
self.abbrev_head = M.get_info(self.toplevel).abbrev_head
|
||||
local info = M.get_info(self.toplevel)
|
||||
if not info then
|
||||
log.eprintf('Could not get info for repo at %s', self.gitdir)
|
||||
return
|
||||
end
|
||||
self.abbrev_head = info.abbrev_head
|
||||
end
|
||||
|
||||
--- @async
|
||||
|
|
Loading…
Reference in a new issue