Skip to main content

normalize_remote

Function normalize_remote 

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

A git remote URL as one stable repository name: no scheme, credentials, port, or trailing .git, and a lowercase host. git@github.com:acme/x.git and https://token@github.com/acme/x both become github.com/acme/x. A local path is kept, without a trailing .git.