diff --git a/lapdev-conductor/src/server.rs b/lapdev-conductor/src/server.rs index 44d2746..15c0b42 100644 --- a/lapdev-conductor/src/server.rs +++ b/lapdev-conductor/src/server.rs @@ -526,14 +526,17 @@ impl Conductor { fn format_repo_url(&self, repo: &str) -> String { let repo = repo.trim(); - if !repo.starts_with("http://") + let repo = if !repo.starts_with("http://") && !repo.starts_with("https://") && !repo.starts_with("ssh://") { format!("https://{repo}") } else { repo.to_string() - } + }; + repo.strip_suffix('/') + .map(|r| r.to_string()) + .unwrap_or(repo) } async fn get_raw_repo_details(