From 14e0b7d4ef1bbae9290e86f14c58a08b746270f2 Mon Sep 17 00:00:00 2001 From: Cyborus Date: Thu, 5 Sep 2024 12:01:03 -0400 Subject: fix: consistency among host names --- src/repo.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/repo.rs') diff --git a/src/repo.rs b/src/repo.rs index c8aa924..5221bf3 100644 --- a/src/repo.rs +++ b/src/repo.rs @@ -99,7 +99,7 @@ impl RepoInfo { let url_s = std::str::from_utf8(remote.url_bytes())?; let url = crate::ssh_url_parse(url_s)?; - if url.host_str() == host_url.host_str() { + if crate::host_with_port(&url) == crate::host_with_port(host_url) { name = Some(remote_name_s.to_owned()); } } else { @@ -124,7 +124,7 @@ impl RepoInfo { if let Some(url) = remote.url() { let (url, _) = url_strip_repo_name(crate::ssh_url_parse(url)?)?; - if url.host_str() == host_url.host_str() + if crate::host_with_port(&url) == crate::host_with_port(host_url) && url.path() == host_url.path() { name = Some(remote_name.to_owned()); -- cgit v1.2.3