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(