Skip to content

Commit

Permalink
piecrust: setting commit id and base before adding to commit store
Browse files Browse the repository at this point in the history
  • Loading branch information
miloszm committed Nov 13, 2024
1 parent 57c72e5 commit 2b0ac1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions piecrust/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,8 @@ fn write_commit<P: AsRef<Path>>(

let root = *commit.root();
let root_hex = hex::encode(root);
commit.maybe_hash = Some(root);
commit.base = base_info.maybe_base;

// Don't write the commit if it already exists on disk. This may happen if
// the same transactions on the same base commit for example.
Expand Down

0 comments on commit 2b0ac1c

Please sign in to comment.