From 1e43c303a7bb7c2c34c721554c859ae3eb54c938 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sat, 24 Jul 2021 23:07:43 +0300 Subject: [PATCH] output: cache tree objects (#6301) --- dvc/output.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dvc/output.py b/dvc/output.py index 081df0179..5ed838021 100644 --- a/dvc/output.py +++ b/dvc/output.py @@ -827,6 +827,9 @@ class Output: except FileNotFoundError: self.repo.cloud.pull([obj], **kwargs) + if self.obj: + return self.obj + try: self.obj = objects.load(self.odb, self.hash_info) except (FileNotFoundError, ObjectFormatError):