]> git.ipfire.org Git - thirdparty/git.git/commit
refs/reftable-backend: drop uses of the_repository
authorShreyansh Paliwal <shreyanshpaliwalcmsmn@gmail.com>
Sat, 4 Apr 2026 13:58:40 +0000 (19:28 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Apr 2026 16:58:10 +0000 (09:58 -0700)
commit57c590feb96b2298e0966bea3ce88c72fca37bbd
tree80a320dbb3c5a9be2caead931997199eb21f11e1
parent9a03f165a41d708c672e18e69d43f69689981e7d
refs/reftable-backend: drop uses of the_repository

reftable_be_init() and reftable_be_create_on_disk() use the_repository even
though a repository instance is already available, either directly or via
struct ref_store.

Replace these uses with the appropriate local repository instance (repo or
ref_store->repo) to avoid relying on global state.

Note that USE_THE_REPOSITORY_VARIABLE cannot be removed yet, as
is_bare_repository() is still there in the file.

Signed-off-by: Shreyansh Paliwal <shreyanshpaliwalcmsmn@gmail.com>
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/reftable-backend.c