History

Use source's object_hash in TryFrom

Christoph Rüßler committed 6 months ago

Commit 78b7fdf1 parent fbb2e6e1 file · +1 −1Browse files

Unified · Split

gix-odb/src/store_impls/dynamic/handle.rs+1−1
@@ -349,7 +349,7 @@ impl TryFrom<&super::Store> for super::Store { · 348 unmodified lines
349 &mut s.replacements(),349 &mut s.replacements(),
350 crate::store::init::Options {350 crate::store::init::Options {
351 slots: crate::store::init::Slots::Given(s.files.len().try_into().expect("BUG: too many slots")),351 slots: crate::store::init::Slots::Given(s.files.len().try_into().expect("BUG: too many slots")),
352 object_hash: Default::default(),352 object_hash: s.object_hash,
353 use_multi_pack_index: false,353 use_multi_pack_index: false,
354 alloc_limit_bytes: s.alloc_limit_bytes,354 alloc_limit_bytes: s.alloc_limit_bytes,
355 current_dir: s.current_dir.clone().into(),355 current_dir: s.current_dir.clone().into(),