pub fn get_default_branch(repo: &Repository) -> Result<String, Report>
Expand description

Resolve the default branch name on the ‘origin’ remote. First tries looking for where origin/HEAD is pointing to. If that fails tries a hardcoded list of possible branches.