pub fn get_default_remote_for_fetch(repo_path: &RepoPath) -> Result<String>Expand description
Tries to find the default repo to fetch from based on configuration.
branch.
.remote When on branch
<name>, it tellsgit fetchandgit pushwhich remote to fetch from or push to. […] If no remote is configured, or if you are not on any branch and there is more than one remote defined in the repository, it defaults tooriginfor fetching […].
Falls back to get_default_remote_in_repo.