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