Skip to main content

resolve_push_remote

Function resolve_push_remote 

Source
pub async fn resolve_push_remote(
    project_root: &Path,
    branch: &str,
) -> Result<String, String>
Expand description

Resolve the remote used for push/pull for branch.

Order: configured branch remote → upstream remote name → origin if present → first remote.