diff options
author | Mike Frysinger <vapier@google.com> | 2020-02-04 00:09:23 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2020-02-12 11:44:59 +0000 |
commit | 6f1c626a9b38af3cec15df8975bd26dd267bb07e (patch) | |
tree | 866c3e1c0c5e8ad3181e24b1e8d8c97d3e7713f5 /subcmds/sync.py | |
parent | 77479863da2871fb8ae6e3cf521cd7ca73f46f42 (diff) | |
download | git-repo-6f1c626a9b38af3cec15df8975bd26dd267bb07e.tar.gz |
drop old git_require checks
We've been requiring git-1.7.2 since Oct 2012, so we can safely drop
the individual checks sprinkled throughout the code base for older.
Change-Id: I1737fff7b3f27f475960b0bff9cb300aefd5d108
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/253135
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r-- | subcmds/sync.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index cc058af6..937d6e87 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -580,8 +580,7 @@ later is required to fix a server side protocol bug. | |||
580 | project.config.SetString('gc.pruneExpire', 'never') | 580 | project.config.SetString('gc.pruneExpire', 'never') |
581 | gc_gitdirs[project.gitdir] = project.bare_git | 581 | gc_gitdirs[project.gitdir] = project.bare_git |
582 | 582 | ||
583 | has_dash_c = git_require((1, 7, 2)) | 583 | if multiprocessing: |
584 | if multiprocessing and has_dash_c: | ||
585 | cpu_count = multiprocessing.cpu_count() | 584 | cpu_count = multiprocessing.cpu_count() |
586 | else: | 585 | else: |
587 | cpu_count = 1 | 586 | cpu_count = 1 |