|
@@ -27,6 +27,9 @@ from dulwich.errors import (
|
|
|
HangupException,
|
|
|
GitProtocolError,
|
|
|
)
|
|
|
+from dulwich.misc import (
|
|
|
+ SEEK_END,
|
|
|
+ )
|
|
|
|
|
|
TCP_GIT_PORT = 9418
|
|
|
|
|
@@ -193,7 +196,7 @@ class ReceivableProtocol(Protocol):
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -204,7 +207,7 @@ class ReceivableProtocol(Protocol):
|
|
|
|
|
|
buf = self._rbuf
|
|
|
start = buf.tell()
|
|
|
- buf.seek(0, os.SEEK_END)
|
|
|
+ buf.seek(0, SEEK_END)
|
|
|
|
|
|
buf_len = buf.tell() - start
|
|
|
if buf_len >= size:
|
|
@@ -252,7 +255,7 @@ class ReceivableProtocol(Protocol):
|
|
|
|
|
|
buf = self._rbuf
|
|
|
start = buf.tell()
|
|
|
- buf.seek(0, os.SEEK_END)
|
|
|
+ buf.seek(0, SEEK_END)
|
|
|
buf_len = buf.tell()
|
|
|
buf.seek(start)
|
|
|
|