pub async fn current_branch(path: impl AsRef<Path>) -> Result<String, AppError>
Get the current branch asynchronously.