pub fn get_current_branch(root: &Path) -> Result<String>