summaryrefslogtreecommitdiff
path: root/gitweb/gitweb.css
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-08-07 05:34:26 +0200
committerJunio C Hamano <gitster@pobox.com>2026-08-06 21:24:25 -0700
commit8a1ba94eb5863cd7491899bb23a290081e760453 (patch)
treec135e224a42279a867e0262931fe777de1f0e515 /gitweb/gitweb.css
parentca571025d86b55933d493e38d6e72824bcf5a80a (diff)
setup: detangle loading of loose object maps
When a repository is configured to use a compatibility hash function then we load the loose object map when we initialize the repository. This object map provides the mappings between the canonical object hash and the compatibility object hash. Loading the object map happens in `repo_set_compat_hash_algo()`, which calls `repo_read_loose_object_map()` in case the compatibility object hash is non-zero. This setup sequence has two major downsides: - We assume that the primary object database is the "files" object database and unconditionally downcast it. This will cause us to BUG in case a different object database type was used together with a compat hash algorithm. - We require the object database to already have been initialized when configuring the object database. This means that we must intermix configuration of the repository and initialization of its sub-structures in a weird way. Refactor the logic so that we instead load the loose object map via the "loose" backend, which fixes both of the above issues. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.css')
0 files changed, 0 insertions, 0 deletions