summaryrefslogtreecommitdiff
path: root/gitdb/db
diff options
context:
space:
mode:
Diffstat (limited to 'gitdb/db')
-rw-r--r--gitdb/db/loose.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitdb/db/loose.py b/gitdb/db/loose.py
index 53ade9f..7bf92da 100644
--- a/gitdb/db/loose.py
+++ b/gitdb/db/loose.py
@@ -50,11 +50,11 @@ from gitdb.fun import (
stream_copy
)
-from gitdb.utils.compat import MAXSIZE
from gitdb.utils.encoding import force_bytes
import tempfile
import os
+import sys
__all__ = ('LooseObjectDB', )
@@ -196,7 +196,7 @@ class LooseObjectDB(FileDBBase, ObjectDBR, ObjectDBW):
if istream.binsha is not None:
# copy as much as possible, the actual uncompressed item size might
# be smaller than the compressed version
- stream_copy(istream.read, writer.write, MAXSIZE, self.stream_chunk_size)
+ stream_copy(istream.read, writer.write, sys.maxsize, self.stream_chunk_size)
else:
# write object with header, we have to make a new one
write_object(istream.type, istream.size, istream.read, writer.write,