From 0e72eba775d5d4877cfc11a876771846ebe68893 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Wed, 6 May 2026 02:50:59 +0200 Subject: [PATCH] fix(git): skip cat-file when git URI rev no longer exists --- lua/git/object.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/git/object.lua b/lua/git/object.lua index fab9ef4..735390d 100644 --- a/lua/git/object.lua +++ b/lua/git/object.lua @@ -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(