Skip to content

Commit

Permalink
Fix 'Tree::lookup_entry_by_path' usage
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis authored and archseer committed Oct 16, 2023
1 parent a6ab062 commit 7c98b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-vcs/src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ fn find_file_in_commit(repo: &Repository, commit: &Commit, file: &Path) -> Resul
let rel_path = file.strip_prefix(repo_dir)?;
let tree = commit.tree()?;
let tree_entry = tree
.lookup_entry_by_path(rel_path)?
.lookup_entry_by_path(rel_path, &mut Vec::new())?
.context("file is untracked")?;
match tree_entry.mode() {
// not a file, everything is new, do not show diff
Expand Down

0 comments on commit 7c98b1c

Please sign in to comment.