pub async fn default_branch(repo_dir: &Path) -> Result<String>
Get the default branch name (main or master).