Skip to content

Commit

Permalink
Strip .git suffix from canonicalized urls too
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed Apr 26, 2024
1 parent f028fea commit 8232421
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/tabby-common/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ impl RepositoryConfig {
}

pub fn canonicalize_url(url: &str) -> String {
let url = url.strip_suffix(".git").unwrap_or(url);
url::Url::parse(url)
.map(|mut url| {
let _ = url.set_password(None);
Expand Down

0 comments on commit 8232421

Please sign in to comment.