pub fn set_current_branch(root: &Path, branch: &str) -> Result<()>