refactor(git/object): use full sha in buffer URIs
This commit is contained in:
+2
-2
@@ -356,12 +356,12 @@ end
|
||||
function M.open(r, rev, opts)
|
||||
local parsed = Revision.parse(rev)
|
||||
if parsed.base then
|
||||
local sha = r:rev_parse(parsed.base, true)
|
||||
local sha = r:rev_parse(parsed.base, false)
|
||||
if sha then
|
||||
parsed.base = sha
|
||||
end
|
||||
end
|
||||
if not r:rev_parse(parsed:format(), true) then
|
||||
if not r:rev_parse(parsed:format(), false) then
|
||||
util.error("not a git object: %s", rev)
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user