Skip to content

Commit 84b2e68

Browse files
authored
repo: index: don't set cache storage if there is no out.cache (#10275)
1 parent 0bb2f3d commit 84b2e68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dvc/repo/index.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ def _load_storage_from_out(storage_map, key, out):
215215
from dvc.config import NoRemoteError
216216
from dvc_data.index import FileStorage, ObjectStorage
217217

218-
storage_map.add_cache(ObjectStorage(key, out.cache))
218+
if out.cache:
219+
storage_map.add_cache(ObjectStorage(key, out.cache))
220+
219221
try:
220222
remote = out.repo.cloud.get_remote(out.remote)
221223
if remote.fs.version_aware:

0 commit comments

Comments
 (0)