fix(git): redo full setup when refreshing a half-initialized URI buffer
This commit is contained in:
+5
-1
@@ -276,7 +276,11 @@ local function refresh(buf, r)
|
||||
if not rev_sha or rev_sha == state.sha then
|
||||
return
|
||||
end
|
||||
populate(buf, r, rev, state, rev_sha)
|
||||
if state.sha == nil then
|
||||
M.read_uri(buf)
|
||||
else
|
||||
populate(buf, r, rev, state, rev_sha)
|
||||
end
|
||||
end
|
||||
|
||||
---@param r ow.Git.Repo
|
||||
|
||||
Reference in New Issue
Block a user