summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2020-02-11 18:51:08 -0500
committerMike Frysinger <vapier@google.com>2020-02-12 00:28:03 +0000
commit82caef67a16437b9c39e1f2c920cc6307767b1d6 (patch)
tree3405146a19806eac2f5d28012aac7235c12f1096 /repo
parent3645bd24200b0f97eaeb8f65552ec67cc5a3fce8 (diff)
downloadgit-repo-82caef67a16437b9c39e1f2c920cc6307767b1d6.tar.gz
repo: lower min version of git a bit
We were perhaps a bit too hasty to jump to git-2.10. Existing LTS releases of Ubuntu are quite old still: Trusty has 1.9 while Xenial has 2.5. While we plan on dropping support for those eventually as we migrate to Python 3.6, we don't need to be so strict just yet on the git versions. We also want to disconnect the version the repo launcher requires from the version the rest of the source tree requires. The repo launcher doesn't need as many features, and being flexible there allows us more freedom to upgrade & rollback as needed. So we'll allow git-1.7 again, but start warning on any users older than git-1.9. This aligns better with existing LTS releases, and gives users a chance to start upgrading before we cut them off. Change-Id: I140305dd8e42c9719c84e2aee0dc6a5c5b18da25 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254573 Reviewed-by: David Pursehouse <dpursehouse@collab.net> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'repo')
-rwxr-xr-xrepo7
1 files changed, 6 insertions, 1 deletions
diff --git a/repo b/repo
index 2b125296..01d5c46d 100755
--- a/repo
+++ b/repo
@@ -166,7 +166,12 @@ TACbBS+Up3RpfYVfd63c1cDdlru13pQAn3NQy/SN858MkxN+zym86UBgOad2
166""" 166"""
167 167
168GIT = 'git' # our git command 168GIT = 'git' # our git command
169MIN_GIT_VERSION = (2, 10, 2) # minimum supported git version 169# NB: The version of git that the repo launcher requires may be much older than
170# the version of git that the main repo source tree requires. Keeping this at
171# an older version also makes it easier for users to upgrade/rollback as needed.
172#
173# git-1.7 is in (EOL) Ubuntu Precise.
174MIN_GIT_VERSION = (1, 7, 2) # minimum supported git version
170repodir = '.repo' # name of repo's private directory 175repodir = '.repo' # name of repo's private directory
171S_repo = 'repo' # special repo repository 176S_repo = 'repo' # special repo repository
172S_manifests = 'manifests' # special manifest repository 177S_manifests = 'manifests' # special manifest repository