Skip to content

Commit 5ec714f

Browse files
committed
adapt to changes in git-repository (#470)
1 parent 79c2255 commit 5ec714f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cargo-smart-release/src/git/history.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ fn add_item_if_package_changed<'a>(
237237
let mut repo = ctx.repo.clone();
238238
repo.object_cache_size(1024 * 1024);
239239
let current = git::Tree::from_data(item.id, data_by_tree_id[&item.tree_id].to_owned(), &ctx.repo)
240-
.lookup_path(components.iter().copied())?;
240+
.lookup_entry(components.iter().copied())?;
241241
let parent = match item.parent_tree_id {
242242
Some(tree_id) => git::Tree::from_data(tree_id, data_by_tree_id[&tree_id].to_owned(), &ctx.repo)
243-
.lookup_path(components.iter().copied())?,
243+
.lookup_entry(components.iter().copied())?,
244244
None => None,
245245
};
246246
match (current, parent) {

cargo-smart-release/src/git/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ pub fn change_since_last_release(package: &Package, ctx: &crate::Context) -> any
4747
.object()?
4848
.peel_to_kind(object::Kind::Tree)?
4949
.into_tree()
50-
.lookup_path(components.clone())?
50+
.lookup_entry(components.clone())?
5151
.expect("path must exist in current commit")
5252
.oid;
5353
let released_dir_id = released_target
5454
.object()?
5555
.peel_to_kind(object::Kind::Tree)?
5656
.into_tree()
57-
.lookup_path(components)?
57+
.lookup_entry(components)?
5858
.expect("path must exist as it was supposedly released there")
5959
.oid;
6060

0 commit comments

Comments
 (0)