pub fn origin_url(root: &Path) -> Result<String>
The URL of the origin remote.
origin
Returns an error when root is not inside a git repository, when there is no origin remote, or when origin has no fetch URL.
root