repo: index: don't set cache storage if there is no out.cache (#10275)

This commit is contained in:
Ruslan Kuprieiev
2024-02-01 15:15:35 +02:00
committed by GitHub
parent 0bb2f3d10c
commit 84b2e685e2
+2
View File
@@ -215,7 +215,9 @@ def _load_storage_from_out(storage_map, key, out):
from dvc.config import NoRemoteError
from dvc_data.index import FileStorage, ObjectStorage
if out.cache:
storage_map.add_cache(ObjectStorage(key, out.cache))
try:
remote = out.repo.cloud.get_remote(out.remote)
if remote.fs.version_aware: