This commit is contained in:
Hubert
2021-07-19 06:16:17 +02:00
parent 35537c6688
commit 06fcc46a15
4 changed files with 241 additions and 6 deletions

View File

@@ -172,7 +172,7 @@ async fn git_main(
((str_ref.to_string(), href.clone()), href)
}).collect();
let gitrepo = GitRepo::new(format!("{}/{}/{}.git", &gitust.repo_root_path, &repo.owner.name, &repo.name).as_str())?;
let root = gitrepo.get_root_tree(&commit)?;
let root = gitrepo.get_tree(&commit, Path::new(rootname.as_str()))?;
let browse = gitrepo.browse(&root).await?;
let mut entries : Vec<Entry> = Vec::new();
for entry in browse {