diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-06-06 07:28:57 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-06-06 18:04:31 +0200 |
commit | a83f7f51e172704a445f481d550a3cee962f1dc4 (patch) | |
tree | 6904f8a69647fe7515209d8700a68c2ebfe7cd75 /refs.c | |
parent | Merge branch 'ps/pseudo-ref-terminology' into ps/ref-storage-migration (diff) | |
download | git-a83f7f51e172704a445f481d550a3cee962f1dc4.tar.xz git-a83f7f51e172704a445f481d550a3cee962f1dc4.zip |
setup: unset ref storage when reinitializing repository version
When reinitializing a repository's version we may end up unsetting the
hash algorithm when it matches the default hash algorithm. If we didn't
do that then the previously configured value might remain intact.
While the same issue exists for the ref storage extension, we don't do
this here. This has been fine for most of the part because it is not
supported to re-initialize a repository with a different ref storage
format anyway. We're about to introduce a new command to migrate ref
storages though, so this is about to become an issue there.
Prepare for this and unset the ref storage format when reinitializing a
repository with the "files" format.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
0 files changed, 0 insertions, 0 deletions