mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
repo: index: don't set cache storage if there is no out.cache (#10275)
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
storage_map.add_cache(ObjectStorage(key, out.cache))
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user