summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2020-02-04 00:02:18 -0500
committerMike Frysinger <vapier@google.com>2020-02-05 19:01:40 +0000
commit655aedd7f34d9f2ff6dd3cb77c080addd0f06c4b (patch)
tree5a6a04024951d487a9d0e7e548d474e56d09bb04
parentcc960971f450907b44259154821515224d3a2ea3 (diff)
downloadgit-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.py3
-rwxr-xr-xrepo2
-rw-r--r--tests/test_git_command.py2
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
28from wrapper import Wrapper 28from wrapper import Wrapper
29 29
30GIT = 'git' 30GIT = 'git'
31MIN_GIT_VERSION = (1, 5, 4) 31# Should keep in sync with the "repo" launcher file.
32MIN_GIT_VERSION = (2, 10, 2)
32GIT_DIR = 'GIT_DIR' 33GIT_DIR = 'GIT_DIR'
33 34
34LAST_GITDIR = None 35LAST_GITDIR = None
diff --git a/repo b/repo
index d6ce48ed..0b870731 100755
--- a/repo
+++ b/repo
@@ -86,7 +86,7 @@ TACbBS+Up3RpfYVfd63c1cDdlru13pQAn3NQy/SN858MkxN+zym86UBgOad2
86""" 86"""
87 87
88GIT = 'git' # our git command 88GIT = 'git' # our git command
89MIN_GIT_VERSION = (1, 7, 2) # minimum supported git version 89MIN_GIT_VERSION = (2, 10, 2) # minimum supported git version
90repodir = '.repo' # name of repo's private directory 90repodir = '.repo' # name of repo's private directory
91S_repo = 'repo' # special repo repository 91S_repo = 'repo' # special repo repository
92S_manifests = 'manifests' # special manifest repository 92S_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))