Skip to main content

normalize_url

Function normalize_url 

Source
pub fn normalize_url(url: &str) -> String
Expand description

Normalize a clone URL so git@github.com:o/r.git, https://github.com/o/r, and ssh://git@github.com/o/r all compare equal, as host/owner/repo.