From eb97e0b3939ad40f9a66c6cddea729f9263dcd67 Mon Sep 17 00:00:00 2001 From: Alexander Schepanovski Date: Sun, 19 Jan 2020 18:35:38 +0700 Subject: [PATCH] external: do not fail with no remote if cache is available --- dvc/external_repo.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dvc/external_repo.py b/dvc/external_repo.py index ed2e94b78..470646c6e 100644 --- a/dvc/external_repo.py +++ b/dvc/external_repo.py @@ -73,7 +73,10 @@ class ExternalRepo(Repo): def _pull_cached(self, out, to_info): 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 failed = out.checkout() # This might happen when pull haven't really pulled all the files