pack-bitmap-write: use repo_parse_tree()
1a6768d1dd (pack-bitmap-write: 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>
René Scharfe committed
Jan 9, 2026 at 22:30 UTC
fd64c6fbcb29a37e9d1ed8028ef52b886208866f
1 file changed
+1
-1
pack-bitmap-write.c
+1
-1
@@ -478,7 +478,7 @@ static int fill_bitmap_tree(struct bitmap_writer *writer,
478
return 0;
479
bitmap_set(bitmap, pos);
480
481
- if (parse_tree(tree) < 0)
481
+ if (repo_parse_tree(writer->repo, tree) < 0)
482
die("unable to load tree object %s",
483
oid_to_hex(&tree->object.oid));
484
init_tree_desc(&desc, &tree->object.oid, tree->buffer, tree->size);