mirror of
https://forge.pointfixe.fr/hubert/gitust.git
synced 2026-02-04 16:17:30 +01:00
Compare commits
1 Commits
ba19d67f66
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 6beae6629f |
@@ -88,7 +88,11 @@ impl GitWebQ {
|
||||
fn add_path(&self, name : &&String) -> GitWebQ {
|
||||
match &self.path {
|
||||
None => {self.clone_with_path(Some(name.to_string()))}
|
||||
Some(path) => {self.clone_with_path()}
|
||||
Some(path) => {if path.ends_with("/") {
|
||||
self.clone_with_path(Some(path.clone() + name))
|
||||
} else {
|
||||
self.clone_with_path(Some(path.clone() + "/" + name))
|
||||
}}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user