Skip to main content

pick_remote

Function pick_remote 

Source
pub fn pick_remote(remotes: &[(String, String)]) -> Option<SelectedRemote>
Expand description

Pick the permalink remote: upstream > origin > first remaining (0001 pillar 3.3). The first remote that parses wins; a failure of the winner surfaces at the caller — never a silent substitute URL.