From 4406642e20d2b984631e6099664058013095ce49 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 21 Mar 2024 12:58:01 -0400 Subject: 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 Commit-Queue: Mike Frysinger Tested-by: Mike Frysinger --- git_command.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'git_command.py') 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 GIT = "git" -# NB: These do not need to be kept in sync with the repo launcher script. -# These may be much newer as it allows the repo launcher to roll between -# different repo releases while source versions might require a newer git. -# -# The soft version is when we start warning users that the version is old and -# we'll be dropping support for it. We'll refuse to work with versions older -# than the hard version. -# -# git-1.7 is in (EOL) Ubuntu Precise. git-1.9 is in Ubuntu Trusty. -MIN_GIT_VERSION_SOFT = (1, 9, 1) -MIN_GIT_VERSION_HARD = (1, 7, 2) GIT_DIR = "GIT_DIR" LAST_GITDIR = None -- cgit v1.2.3-54-g00ecf