pub fn get_sync_branch(repo_path: &Path) -> Result<String>
Returns the current branch name or an error when sync is unsafe.