diff options
Diffstat (limited to 'subcmds')
| -rw-r--r-- | subcmds/sync.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 8e9477a3..15f69f7b 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
| @@ -44,7 +44,7 @@ try: | |||
| 44 | except ImportError: | 44 | except ImportError: |
| 45 | multiprocessing = None | 45 | multiprocessing = None |
| 46 | 46 | ||
| 47 | from git_command import GIT | 47 | from git_command import GIT, git_require |
| 48 | from git_refs import R_HEADS, HEAD | 48 | from git_refs import R_HEADS, HEAD |
| 49 | from main import WrapperModule | 49 | from main import WrapperModule |
| 50 | from project import Project | 50 | from project import Project |
| @@ -310,7 +310,8 @@ later is required to fix a server side protocol bug. | |||
| 310 | return fetched | 310 | return fetched |
| 311 | 311 | ||
| 312 | def _GCProjects(self, projects): | 312 | def _GCProjects(self, projects): |
| 313 | if multiprocessing: | 313 | has_dash_c = git_require((1, 7, 2)) |
| 314 | if multiprocessing and has_dash_c: | ||
| 314 | cpu_count = multiprocessing.cpu_count() | 315 | cpu_count = multiprocessing.cpu_count() |
| 315 | else: | 316 | else: |
| 316 | cpu_count = 1 | 317 | cpu_count = 1 |
