fix(git): skip cat-file when git URI rev no longer exists
This commit is contained in:
+1
-1
@@ -183,7 +183,7 @@ function M.read_uri(buf)
|
||||
-- fs-event for buffers whose content can't have changed.
|
||||
if stdout == nil then
|
||||
local rev_sha = r:rev_parse(rev_str, true)
|
||||
if rev_sha and rev_sha == state.sha then
|
||||
if not rev_sha or rev_sha == state.sha then
|
||||
return
|
||||
end
|
||||
stdout = util.exec(
|
||||
|
||||
Reference in New Issue
Block a user