def METHOD_NAME(url: str, to_path: str, **kwargs):
    from scmrepo.exceptions import CloneError as InternalCloneError
    from dvc.repo.experiments.utils import fetch_all_exps
    with TqdmGit(desc=f"Cloning {os.path.basename(url)}") as pbar:
        try:
            git = Git.METHOD_NAME(url, to_path, progress=pbar.update_git, **kwargs)
            if "shallow_branch" not in kwargs:
                fetch_all_exps(git, url, progress=pbar.update_git)
            return git
        except InternalCloneError as exc:
            raise CloneError("SCM error") from exc