mirror of
https://github.com/git/git.git
synced 2026-06-24 08:48:31 +00: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:
committed by
Junio C Hamano
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);
|
||||
|
||||
Reference in New Issue
Block a user