Fix issue #247 'TypeError when fetching empty updates into MemoryRepo' by adding check for _num_objects is None when iterating pack data.
Hwee Miin Koh authored 6 years ago
Jelmer Vernooij committed 5 years ago
1093 | 1093 | # TODO(dborowitz): Merge this with iterobjects, if we can change its |
1094 | 1094 | # return type. |
1095 | 1095 | self._file.seek(self._header_size) |
1096 | ||
1097 | if self._num_objects is None: | |
1098 | return | |
1099 | ||
1096 | 1100 | for _ in xrange(self._num_objects): |
1097 | 1101 | offset = self._file.tell() |
1098 | 1102 | unpacked, unused = unpack_object( |