pub fn update_head(repo_path: &Path, branch: &str) -> Result<(), String>
Update HEAD to point to a branch