mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
index: use has_node instead of ls
Current code doesn't work for prefixes longer than one, which makes index cache effectively not work and it should've used has_node from the very start anyway.
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user