def METHOD_NAME(self) -> Any:
    if not self.repo:
        return None
    try:
        return self.repo.git.rev_parse("--show-toplevel")
    except GitCommandError as e:
        # todo: collect telemetry on this
        logger.error(f"git root error: {e}")
        return None