Skip to content

Commit

Permalink
repo: index: don't set cache storage if there is no out.cache (iterat…
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop authored Feb 1, 2024
1 parent 0bb2f3d commit 84b2e68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dvc/repo/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 84b2e68

Please sign in to comment.