Show More
@@ -25,6 +25,7 b' import urllib' | |||
|
25 | 25 | import urllib2 |
|
26 | 26 | from functools import wraps |
|
27 | 27 | |
|
28 | import more_itertools | |
|
28 | 29 | from dulwich import index, objects |
|
29 | 30 | from dulwich.client import HttpGitClient, LocalGitClient |
|
30 | 31 | from dulwich.errors import ( |
@@ -495,10 +496,13 b' class GitRemote(object):' | |||
|
495 | 496 | fetch_refs.append('{}:{}'.format(ref, ref)) |
|
496 | 497 | elif not refs: |
|
497 | 498 | fetch_refs.append('{}:{}'.format(ref, ref)) |
|
498 | ||
|
499 | log.debug('Finished obtaining fetch refs, total: %s', len(fetch_refs)) | |
|
499 | 500 | if fetch_refs: |
|
501 | for chunk in more_itertools.chunked(fetch_refs, 1024 * 4): | |
|
502 | fetch_refs_chunks = list(chunk) | |
|
503 | log.debug('Fetching %s refs from import url', len(fetch_refs_chunks)) | |
|
500 | 504 | _out, _err = self.run_git_command( |
|
501 | wire, ['fetch', url, '--force', '--prune', '--'] + fetch_refs, | |
|
505 | wire, ['fetch', url, '--force', '--prune', '--'] + fetch_refs_chunks, | |
|
502 | 506 | fail_on_stderr=False, |
|
503 | 507 | _copts=self._remote_conf(config), |
|
504 | 508 | extra_env={'GIT_TERMINAL_PROMPT': '0'}) |
General Comments 0
You need to be logged in to leave comments.
Login now