Skip to main content

normalize_remote

Function normalize_remote 

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

A git remote as a workspace name.

https://host/owner/repo.git, git@host:owner/repo.git and ssh://git@host/owner/repo all land on git:host/owner/repo, which is what makes two clients in one checkout agree.

ยงErrors

Returns a message when the string is empty or is not a remote shape.