You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Codex review noted that default initialization in SHA256-only builds wrote a v0 repository without extensions.objectFormat, causing gix::init() to fail when reopening the repository. Default creation options now select Sha256 when SHA1 support is unavailable, so the written repository can be opened by the same build.
Codex review also noted that repository format versions greater than 1 were treated as supporting extensions.objectFormat. Opening now rejects unsupported repository format versions before interpreting extensions, matching Git's fail-closed behavior.
Validated with:
- cargo test -p gix --lib default_object_hash_matches_available_hash_support
- cargo test -p gix --no-default-features --features sha256 --lib default_object_hash_matches_available_hash_support
- cargo test -p gix --test gix rejects_future_repository_format_versions
- cargo test -p gix --test gix rejects_object_format_on_v0_repo
- cargo check -p gix --no-default-features --features sha256
0 commit comments