summaryrefslogtreecommitdiff
path: root/lib/git/objects/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/objects/base.py')
-rw-r--r--lib/git/objects/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/objects/base.py b/lib/git/objects/base.py
index f7043199..64a5678e 100644
--- a/lib/git/objects/base.py
+++ b/lib/git/objects/base.py
@@ -125,8 +125,8 @@ class Object(LazyMixin):
Returns
File Object compatible stream to the uncompressed raw data of the object
"""
- proc = self.repo.git.cat_file(self.type, self.sha, as_process=True)
- return utils.ProcessStreamAdapter(proc, "stdout")
+ sha, type, size, stream = self.repo.git.stream_object_data(self.sha)
+ return stream
def stream_data(self, ostream):
"""