diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-06-04 09:46:31 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-06-05 21:49:39 +0900 |
| commit | a84a9d4acdae51f58529b2596c4bd935fe9af372 (patch) | |
| tree | d907d7e64fde2722d74600f2d5d45d369193c52d /t/t4013/diff.diff_--stat_initial..side | |
| parent | d87de311ff506599ec130ba5f09a4f73e458a5ae (diff) | |
repository: stop reading loose object map twice on repo init
When initializing a repository via `repo_init()` we end up reading the
loose object map twice:
- `apply_repository_format()` calls `repo_set_compat_hash_algo()`,
which in turn calls `repo_read_loose_object_map()` if we have a
compatibility hash configured.
- `repo_init()` calls `repo_read_loose_object_map()` directly a second
time.
Drop the second read of the loose object map in `repo_init()`.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_--stat_initial..side')
0 files changed, 0 insertions, 0 deletions
