mirror of
https://github.com/git/git.git
synced 2026-01-11 13:23:12 +09:00
delta-islands: use repo_parse_tree()
19be71db9c (delta-islands: stop depending on `the_repository`, 2025-03-10) replaced explicit uses of the_repository. parse_tree() uses it internally, though, so call repo_parse_tree() instead and hand it the correct repository. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
83131ed25c
commit
d54eb12910
@ -283,7 +283,7 @@ void resolve_tree_islands(struct repository *r,
|
||||
root_marks = kh_value(island_marks, pos);
|
||||
|
||||
tree = lookup_tree(r, &ent->idx.oid);
|
||||
if (!tree || parse_tree(tree) < 0)
|
||||
if (!tree || repo_parse_tree(r, tree) < 0)
|
||||
die(_("bad tree object %s"), oid_to_hex(&ent->idx.oid));
|
||||
|
||||
init_tree_desc(&desc, &tree->object.oid, tree->buffer, tree->size);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user