]> git.ipfire.org Git - thirdparty/git.git/commit
setup: correctly reinitialize repository version
authorCaleb White <cdwhite3@pm.me>
Fri, 29 Nov 2024 22:22:26 +0000 (22:22 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Dec 2024 00:36:16 +0000 (09:36 +0900)
commitd897f2c16da9ab9588d2015121449d5bc54c9736
treeb58e8d0e078edc70320db3a19f172322602b3ab9
parent090d24e9af6e9f59c3f7bee97c42bb1ae3c7f559
setup: correctly reinitialize repository version

When reinitializing a repository, Git does not account for extensions
other than `objectformat` and `refstorage` when determining the
repository version. This can lead to a repository being downgraded to
version 0 if extensions are set, causing Git future operations to fail.

This patch teaches Git to check if other extensions are defined in the
config to ensure that the repository version is set correctly.

Signed-off-by: Caleb White <cdwhite3@pm.me>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c
t/t5504-fetch-receive-strict.sh