def METHOD_NAME(self, shallow: bool = True) -> None:
    """
    Ensuret that a copy of this repo has been cloned and is up to date.
    """
    dest_dir = self.cache_dir
    if not dest_dir.is_dir():
        dest_dir.parent.mkdir(parents=True, exist_ok=True)
        if shallow:
            sh.git("clone", "--depth=1", self.github_url, dest_dir.as_posix(), _fg=True)
        else:
            sh.git("clone", self.github_url, dest_dir.as_posix(), _fg=True)
    else:
        self.update_and_reset()