nodes: fetching largefiles content is commit independent because the pointes is

unique id itself.
This commit is contained in:
Marcin Kuzminski 2017-04-12 20:54:32 +02:00
parent 7ab84fa130
commit d321c7d65d

View file

@ -785,11 +785,8 @@ class LargeFileNode(FileNode):
@LazyProperty
def raw_bytes(self):
if self.commit:
with open(self.path, 'rb') as f:
content = f.read()
else:
content = self._content
with open(self.path, 'rb') as f:
content = f.read()
return content
@LazyProperty