output: cache tree objects (#6301)

This commit is contained in:
Ruslan Kuprieiev
2021-07-24 23:07:43 +03:00
committed by GitHub
parent 985c0328c7
commit 1e43c303a7
+3
View File
@@ -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):