Skip to main content

origin_url

Function origin_url 

Source
pub fn origin_url(root: &Path) -> Result<String>
Expand description

The URL of the origin remote.

ยงErrors

Returns an error when root is not inside a git repository, when there is no origin remote, or when origin has no fetch URL.