on master help sign in
Fix 'Tree::lookup_entry_by_path' usage
commit7c98b1c8293139e0ddbd8a71bdc350f5e0cef41c authorMichael Davis <mcarsondavis@gmail.com> dateTue 8 Aug 2023, 18:13 (3 years ago) parenta6ab062
1 file changed+1−1
helix-vcs/src/git.rs+1−1
helix-vcs/src/git.rs+1−1
@@ -126,7 +126,7 @@ fn find_file_in_commit(repo: &Repository, commit: &Commit, file: &Path) -> Resul
126126 let rel_path = file.strip_prefix(repo_dir)?;
127127 let tree = commit.tree()?;
128128 let tree_entry = tree
129− .lookup_entry_by_path(rel_path)?
129+ .lookup_entry_by_path(rel_path, &mut Vec::new())?
130130 .context("file is untracked")?;
131131 match tree_entry.mode() {
132132 // not a file, everything is new, do not show diff