Skip to main content

try_find_active_remote

Function try_find_active_remote 

Source
pub fn try_find_active_remote<'a>(
    git_repo: &'a Repository,
    name: &RemoteName,
) -> Result<Option<Remote<'a>>, GitRemoteManagementError>
Expand description

Finds a configured remote with the given name. Returns None if it doesn’t exist or has no fetch or push URLs.