commit: | f787ec91b302d03368c900cf7fdb79de2f4ae529 |
author: | Trevor Bentley |
committer: | Trevor Bentley |
date: | Tue Jan 17 00:04:17 2023 +0100 |
parents: | 570a357c51bb891c02d6138794e439329490aa0a |
diff --git a/src/git.rs b/src/git.rs line changes: +1/-1 index d8268db..596639f --- a/src/git.rs +++ b/src/git.rs
@@ -293,7 +293,7 @@ fn walk_file_tree( pub fn dir_listing(repo: &Repository, file: &GitFile) -> Result<Vec<GitFile>, Error> { let mut files: Vec<GitFile> = vec![]; - walk_file_tree(&repo, &file.id, &mut files, 0, usize::MAX, false, "")?; + walk_file_tree(&repo, &file.id, &mut files, 0, usize::MAX, false, &(file.path.clone() + "/"))?; Ok(files) }