Skip to main content

get_remote_url

Function get_remote_url 

Source
pub fn get_remote_url(repo: &Path, remote: &str) -> Result<String>
Expand description

Get the URL of a named remote from a git repository.

ยงErrors

Returns an error if git remote get-url fails or the output is not valid UTF-8.