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