Show More
@@ -110,11 +110,12 b' class lfsuploadfile(object):' | |||||
110 | def read(self, size): |
|
110 | def read(self, size): | |
111 | if self._fp is None: |
|
111 | if self._fp is None: | |
112 | return b'' |
|
112 | return b'' | |
113 |
|
|
113 | return self._fp.read(size) | |
114 | if not data: |
|
114 | ||
|
115 | def close(self): | |||
|
116 | if self._fp is not None: | |||
115 | self._fp.close() |
|
117 | self._fp.close() | |
116 | self._fp = None |
|
118 | self._fp = None | |
117 | return data |
|
|||
118 |
|
119 | |||
119 |
|
120 | |||
120 | class local(object): |
|
121 | class local(object): | |
@@ -539,6 +540,9 b' class _gitlfsremote(object):' | |||||
539 | raise LfsRemoteError( |
|
540 | raise LfsRemoteError( | |
540 | _(b'LFS error: %s') % _urlerrorreason(ex), hint=hint |
|
541 | _(b'LFS error: %s') % _urlerrorreason(ex), hint=hint | |
541 | ) |
|
542 | ) | |
|
543 | finally: | |||
|
544 | if request.data: | |||
|
545 | request.data.close() | |||
542 |
|
546 | |||
543 | def _batch(self, pointers, localstore, action): |
|
547 | def _batch(self, pointers, localstore, action): | |
544 | if action not in [b'upload', b'download']: |
|
548 | if action not in [b'upload', b'download']: |
General Comments 0
You need to be logged in to leave comments.
Login now