diff options
author | Mike Frysinger <vapier@google.com> | 2024-03-21 12:58:01 -0400 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2024-03-21 21:20:50 +0000 |
commit | 4406642e20d2b984631e6099664058013095ce49 (patch) | |
tree | 1110d5f6d97d238eca58405af96f9d1e1324be80 /git_command.py | |
parent | 73356f1d5ccbebf5a33e5e9aa1ba06c5f5437fed (diff) | |
download | git-repo-4406642e20d2b984631e6099664058013095ce49.tar.gz |
git_command: unify soft/hard versions with requirements.json
Use the requirements logic in the wrapper to load versions out of the
requirements.json file to avoid duplicating them in git_command.py.
Change-Id: Ib479049fc54ebc6f52c2c30d1315cf1734ff1990
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/415617
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Commit-Queue: Mike Frysinger <vapier@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'git_command.py')
-rw-r--r-- | git_command.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/git_command.py b/git_command.py index 09ed1a79..1ec7c3ed 100644 --- a/git_command.py +++ b/git_command.py | |||
@@ -33,17 +33,6 @@ from wrapper import Wrapper | |||
33 | 33 | ||
34 | 34 | ||
35 | GIT = "git" | 35 | GIT = "git" |
36 | # NB: These do not need to be kept in sync with the repo launcher script. | ||
37 | # These may be much newer as it allows the repo launcher to roll between | ||
38 | # different repo releases while source versions might require a newer git. | ||
39 | # | ||
40 | # The soft version is when we start warning users that the version is old and | ||
41 | # we'll be dropping support for it. We'll refuse to work with versions older | ||
42 | # than the hard version. | ||
43 | # | ||
44 | # git-1.7 is in (EOL) Ubuntu Precise. git-1.9 is in Ubuntu Trusty. | ||
45 | MIN_GIT_VERSION_SOFT = (1, 9, 1) | ||
46 | MIN_GIT_VERSION_HARD = (1, 7, 2) | ||
47 | GIT_DIR = "GIT_DIR" | 36 | GIT_DIR = "GIT_DIR" |
48 | 37 | ||
49 | LAST_GITDIR = None | 38 | LAST_GITDIR = None |