fix(git): skip cat-file when git URI rev no longer exists

This commit is contained in:
2026-05-06 02:50:59 +02:00
parent 6465c6a8dc
commit 0e72eba775
+1 -1
View File
@@ -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(