Skip to content

Commit

Permalink
write index
Browse files Browse the repository at this point in the history
  • Loading branch information
ncipollo committed Sep 19, 2023
1 parent 3c6536b commit 47e4074
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/repo/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ impl GitCommits {
paths.iter().for_each(|path| {
index.add_path(path.as_ref()).expect("failed to add path")
});
index.write()?;
let oid = index.write_tree()?;
repository.find_tree(oid)
}
Expand Down

0 comments on commit 47e4074

Please sign in to comment.