summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--subcmds/sync.py5
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:
44except ImportError: 44except ImportError:
45 multiprocessing = None 45 multiprocessing = None
46 46
47from git_command import GIT 47from git_command import GIT, git_require
48from git_refs import R_HEADS, HEAD 48from git_refs import R_HEADS, HEAD
49from main import WrapperModule 49from main import WrapperModule
50from project import Project 50from 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