diff options
author | Mike Frysinger <vapier@google.com> | 2020-02-04 00:02:18 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2020-02-05 19:01:40 +0000 |
commit | 655aedd7f34d9f2ff6dd3cb77c080addd0f06c4b (patch) | |
tree | 5a6a04024951d487a9d0e7e548d474e56d09bb04 | |
parent | cc960971f450907b44259154821515224d3a2ea3 (diff) | |
download | git-repo-655aedd7f34d9f2ff6dd3cb77c080addd0f06c4b.tar.gz |
repo: raise min version of git
The git-2.10 series was released in 2016. Since we're moving to
require Python 3.6 which was also released in 2016, bumping up the
git version seems reasonable. Also we don't really test any git
versions close to as old as 1.7.2 which was released in 2010.
Change-Id: Ib71b714de6cd0b7dd50d0b300b108a560ee27331
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/253134
Tested-by: Mike Frysinger <vapier@google.com>
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
-rw-r--r-- | git_command.py | 3 | ||||
-rwxr-xr-x | repo | 2 | ||||
-rw-r--r-- | tests/test_git_command.py | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/git_command.py b/git_command.py index dc542c36..5017ea9b 100644 --- a/git_command.py +++ b/git_command.py | |||
@@ -28,7 +28,8 @@ from repo_trace import REPO_TRACE, IsTrace, Trace | |||
28 | from wrapper import Wrapper | 28 | from wrapper import Wrapper |
29 | 29 | ||
30 | GIT = 'git' | 30 | GIT = 'git' |
31 | MIN_GIT_VERSION = (1, 5, 4) | 31 | # Should keep in sync with the "repo" launcher file. |
32 | MIN_GIT_VERSION = (2, 10, 2) | ||
32 | GIT_DIR = 'GIT_DIR' | 33 | GIT_DIR = 'GIT_DIR' |
33 | 34 | ||
34 | LAST_GITDIR = None | 35 | LAST_GITDIR = None |
@@ -86,7 +86,7 @@ TACbBS+Up3RpfYVfd63c1cDdlru13pQAn3NQy/SN858MkxN+zym86UBgOad2 | |||
86 | """ | 86 | """ |
87 | 87 | ||
88 | GIT = 'git' # our git command | 88 | GIT = 'git' # our git command |
89 | MIN_GIT_VERSION = (1, 7, 2) # minimum supported git version | 89 | MIN_GIT_VERSION = (2, 10, 2) # minimum supported git version |
90 | repodir = '.repo' # name of repo's private directory | 90 | repodir = '.repo' # name of repo's private directory |
91 | S_repo = 'repo' # special repo repository | 91 | S_repo = 'repo' # special repo repository |
92 | S_manifests = 'manifests' # special manifest repository | 92 | S_manifests = 'manifests' # special manifest repository |
diff --git a/tests/test_git_command.py b/tests/test_git_command.py index 51171a32..8d9b5f00 100644 --- a/tests/test_git_command.py +++ b/tests/test_git_command.py | |||
@@ -35,7 +35,7 @@ class GitCallUnitTest(unittest.TestCase): | |||
35 | # We don't dive too deep into the values here to avoid having to update | 35 | # We don't dive too deep into the values here to avoid having to update |
36 | # whenever git versions change. We do check relative to this min version | 36 | # whenever git versions change. We do check relative to this min version |
37 | # as this is what `repo` itself requires via MIN_GIT_VERSION. | 37 | # as this is what `repo` itself requires via MIN_GIT_VERSION. |
38 | MIN_GIT_VERSION = (1, 7, 2) | 38 | MIN_GIT_VERSION = (2, 10, 2) |
39 | self.assertTrue(isinstance(ver.major, int)) | 39 | self.assertTrue(isinstance(ver.major, int)) |
40 | self.assertTrue(isinstance(ver.minor, int)) | 40 | self.assertTrue(isinstance(ver.minor, int)) |
41 | self.assertTrue(isinstance(ver.micro, int)) | 41 | self.assertTrue(isinstance(ver.micro, int)) |