Hi, this issue with the reinitialization of the ref format was recently discovered in our CI systems at GitLab, where caches contained repos with one ref format but we tried to reinit them with a different ref format. But turns out that the same issue also exists for the object format, so this patch series fixes both issues. Thanks! Patrick --- Patrick Steinhardt (3): t0001: remove duplicate test setup: fix reinit of repos with incompatible GIT_DEFAULT_REF_FORMAT setup: fix reinit of repos with incompatible GIT_DEFAULT_HASH setup.c | 8 ++++++-- t/t0001-init.sh | 30 +++++++++++++++++++++--------- 2 files changed, 27 insertions(+), 11 deletions(-) --- base-commit: 3b0d05c4a79d0e441283680a864529b02dca5f08 change-id: 20250130-b4-pks-reinit-default-ref-format-96a5e2104421