mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
external: do not fail with no remote if cache is available
This commit is contained in:
@@ -73,7 +73,10 @@ class ExternalRepo(Repo):
|
|||||||
|
|
||||||
def _pull_cached(self, out, to_info):
|
def _pull_cached(self, out, to_info):
|
||||||
with self.state:
|
with self.state:
|
||||||
self.cloud.pull(out.get_used_cache())
|
# Only pull unless all needed cache is present
|
||||||
|
if out.changed_cache():
|
||||||
|
self.cloud.pull(out.get_used_cache())
|
||||||
|
|
||||||
out.path_info = to_info
|
out.path_info = to_info
|
||||||
failed = out.checkout()
|
failed = out.checkout()
|
||||||
# This might happen when pull haven't really pulled all the files
|
# This might happen when pull haven't really pulled all the files
|
||||||
|
|||||||
Reference in New Issue
Block a user