pub fn get_current_branch<P: AsRef<Path>>( repo_path: P, ) -> Result<String, GitError>
Get the current branch name.