mirror of
https://forge.pointfixe.fr/hubert/gitust.git
synced 2026-02-04 16:37:30 +01:00
browse ok
This commit is contained in:
10
src/main.rs
10
src/main.rs
@@ -153,8 +153,14 @@ async fn git_main(
|
||||
gitust : web::Data<Gitust>
|
||||
) -> Result<GitMainTemplate<Vec<Entry>, Vec<(String, String)>>, error::Error> {
|
||||
let rootname = match pathopt {
|
||||
None => {"/".to_string()}
|
||||
Some(s) => {s}
|
||||
None => {"".to_string()}
|
||||
Some(s) => {
|
||||
if s.starts_with("/") {
|
||||
(&s[1..]).to_string()
|
||||
} else {
|
||||
s
|
||||
}
|
||||
}
|
||||
};
|
||||
let commit = match commitnameopt {
|
||||
None => {match branchopt {
|
||||
|
||||
Reference in New Issue
Block a user