Skip to main content

normalize_repo

Function normalize_repo 

Source
pub fn normalize_repo(raw: &str) -> Option<String>
Expand description

owner/repo, lowercase, from a remote URL in any of git’s spellings (https://host/owner/repo.git, git@host:owner/repo, ssh://...), or from an owner/repo a caller typed. Credentials in a URL never survive: only the last two path segments are kept.