]> git.ipfire.org Git - thirdparty/git.git/commitdiff
pack-bitmap-write: use repo_parse_tree()
authorRené Scharfe <l.s.r@web.de>
Fri, 9 Jan 2026 21:30:17 +0000 (22:30 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 10 Jan 2026 02:36:17 +0000 (18:36 -0800)
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>
pack-bitmap-write.c

index 4404921521ca3470341a381c53cfc1c654ddbb47..d38de772c6c93d18b9742185a5a4115643fb21f0 100644 (file)
@@ -478,7 +478,7 @@ static int fill_bitmap_tree(struct bitmap_writer *writer,
                return 0;
        bitmap_set(bitmap, pos);
 
-       if (parse_tree(tree) < 0)
+       if (repo_parse_tree(writer->repo, tree) < 0)
                die("unable to load tree object %s",
                    oid_to_hex(&tree->object.oid));
        init_tree_desc(&desc, &tree->object.oid, tree->buffer, tree->size);