Skip to main content

parse_remote

Function parse_remote 

Source
pub fn parse_remote(url: &str) -> Result<Repo, Error>
Expand description

Parses an ssh or https remote URL on github.com or a *.github.com host.

ยงErrors

Returns an error when the URL is not an ssh or http(s) URL with a path. It also returns one when its host is not GitHub or the path is not owner/name.