diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-08-17 13:09:21 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-08-17 09:36:09 -0700 |
| commit | 1c46ce6dda5c58301af6a8b7a27e68fd7fb86993 (patch) | |
| tree | 91c260d0132d6877b40f34779300d645d055a08d /t/t4013/diff.diff_initial..side | |
| parent | d296c52baa7a0ac456cb4e7fe8e4baeb4982fd6c (diff) | |
setup: create ref and object databases after config is written
When creating a new repository we create both the reference and object
databases after we have finalized the repository. This ensures that
those subsystems find a fully-configured repository at the time where
they are asked to create their own on-disk data structures.
There is one exception though: while we have already fully configured
the repository at this point, we haven't yet written both
"core.sharedRepository" and "receive.denyNonFastforwards". The latter
configuration doesn't really matter to us, but the first one does as the
"files" object database source reads it.
This doesn't cause any problems right now, but it will in a subsequent
patch where we will start to read "core.ignoreCase" when creating the
object database. Move the initialization of both of these data
structures towards the end of `init_db()`. The only thing that now comes
after is status reporting, but that's it.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
