]> git.ipfire.org Git - thirdparty/git.git/commit
setup: drop redundant configuration of `startup_info->have_repository`
authorPatrick Steinhardt <ps@pks.im>
Tue, 30 Jun 2026 11:47:50 +0000 (13:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jun 2026 18:29:41 +0000 (11:29 -0700)
commitc00fcc75bafce2231479ed33ac6d8d36cc960bfb
tree0ffd70b6084eb54e4c1b9a035bd98517e70573ee
parent4ce6d5814ec986d594efa475b87b8a46e206c1be
setup: drop redundant configuration of `startup_info->have_repository`

In `init_db()` we set `startup_info->have_repository` twice: once before
reading and applying the repository format and once after. This is
redundant though, as configuring the repository format does not rely on
this variable at all.

Remove the first such site. While at it, fix up formatting a bit.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c