diff options
author | Michael Davis | 2023-08-08 23:13:57 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-10-16 03:43:00 +0000 |
commit | 7c98b1c8293139e0ddbd8a71bdc350f5e0cef41c (patch) | |
tree | 1b81e1d8881108299f7cfdebe351a54bae6fbc44 /helix-vcs/src/git.rs | |
parent | a6ab062b2dad0da41613113bce7b98353e5de104 (diff) |
Fix 'Tree::lookup_entry_by_path' usage
Diffstat (limited to 'helix-vcs/src/git.rs')
-rw-r--r-- | helix-vcs/src/git.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-vcs/src/git.rs b/helix-vcs/src/git.rs index cd28d5e4..88dba70c 100644 --- a/helix-vcs/src/git.rs +++ b/helix-vcs/src/git.rs @@ -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 |