pub fn get_head_commit(repo_path: &Path) -> Result<String, GitError>
Get the current HEAD commit ID as a string.