pub fn default_branch(path: &str) -> AppResult<String> {
    Ok(Repository::discover(path)?
        .find_reference("refs/remotes/origin/HEAD")?
        .symbolic_target()
        .unwrap_or_default()