diff --git a/dvc/repo/index.py b/dvc/repo/index.py index 38fddea8b..217b2278e 100644 --- a/dvc/repo/index.py +++ b/dvc/repo/index.py @@ -364,7 +364,7 @@ class Index: index = DataIndex() prefix = ("tree", self.data_tree.hash_info.value) - if prefix in index.ls((), detail=False): + if index.has_node(prefix): loaded = True try: diff --git a/pyproject.toml b/pyproject.toml index a719bc35f..8874273d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ dependencies = [ "configobj>=5.0.6", "distro>=1.3", "dpath<3,>=2.0.2", - "dvc-data>=0.41.0,<0.42", + "dvc-data>=0.41.1,<0.42", "dvc-http", "dvc-render>=0.1.2", "dvc-studio-client>=0.1.1",