Repository navigation
v0.42.87
FIX-MTR-17 — ImportRepo lands and serves objects under the configured kind
ImportRepo converted git-db rows with the thread-local FromGitModel helpers, so a
SHA-256 import repository either panicked or produced ids of the wrong algorithm: the
first push never landed, and a clone ended in early EOF / unpack-objects failed.
New fallible converters — commit_from_git_model_with_kind,
tree_from_git_model_with_kind, tag_from_git_model_with_kind — are now used with
RepoHandler::object_hash_kind() throughout:
incremental_pack(want commits, walked parents, want trees, have-tree traversal)collect_objects(commits, trees, tags, blobs — blob ids hashed under the configured
kind, every database stream failure returned as an error)full_pack(materializes the exact object list before sizing the encoder, so a
conversion failure fails the request instead of truncating the pack)collect_git_blob_filepathsandcollect_code_tree_objects- the attach path (leaf helpers, imported tip commit, mounted root commit, post-commit
authorization reads,search_and_create_treeand its.gitkeep)
Database reads and missing objects that were previously unwraped now propagate as
errors, and the refused-attach warning logs its stored reason.
Verification
cargo nextest run --all --no-fail-fast: 3133/3133 passed, 3 pre-existing ignores (687 s)tests/integration_import_hash.rsover real Docker Git: 5/5 — SHA-1 and SHA-256
first push, fast-forward update, and ahave-based fetch with content/history assertionsimport_hash_: 5/5 (three algorithms with an independently recomputed digest,
truncated tree body, invalid commit and tag metadata)ceres::pack::: 190/190- VER-1 RED replay fails on the pre-fix tree; audit script passes
- Independent review:
VERDICT: PASS
Patch release: 0.42.86 -> 0.42.87. Dependencies unchanged.