Support reftables in `Housekeeping`
The OptimizeRepository
RPC reaches into the on-disk ref database to decide whether to run git-pack-refs(1). We need to extend it to support the upcoming reftable library.
The biggest fix would be changing ReferencesInfoForRepository
to not consider reftables as loose refs.
Tests which should run with reftable after these fixes:
-
TestCreate_emptySource -
TestObjectPool_logStats/empty_object_pool -
TestOptimizeRepository/empty_repository_does_nothing -
TestOptimizeRepository/loose_refs_get_packed -
TestOptimizeRepository/recently_linked_repository_gets_a_full_repack -
TestPruneIfNeeded -
TestRepositoryInfo -
TestRepositoryInfoForRepository -
TestRepositoryManager_CleanStaleData_referenceLocks -
TestRepositoryManager_CleanStaleData_references -
TestPackRefsIfNeeded
Edited by Karthik Nayak