mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 02:31:29 +00:00
git_common: bump minimum git version
For ReAuth to work, git must be >=2.46.0. Updating depot_tools check according to: https://chromium.googlesource.com/chromium/src/+/main/docs/gerrit_reauth.md#latest-git Change-Id: I95a5bcc336e287d150140d35878ae8521e8817a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7094398 Auto-Submit: Jiewei Qian <qjw@chromium.org> Reviewed-by: Scott Lee <ddoman@chromium.org> Commit-Queue: Scott Lee <ddoman@chromium.org>
This commit is contained in:
@@ -104,7 +104,7 @@ def _extract_git_path_from_git_bat(path: str) -> str:
|
|||||||
GIT_EXE = 'git' if not IS_WIN else win_find_git()
|
GIT_EXE = 'git' if not IS_WIN else win_find_git()
|
||||||
|
|
||||||
# The recommended minimum version of Git, as (<major>, <minor>, <patch>).
|
# The recommended minimum version of Git, as (<major>, <minor>, <patch>).
|
||||||
GIT_MIN_VERSION = (2, 26, 0)
|
GIT_MIN_VERSION = (2, 46, 0)
|
||||||
|
|
||||||
GIT_BLAME_IGNORE_REV_FILE = '.git-blame-ignore-revs'
|
GIT_BLAME_IGNORE_REV_FILE = '.git-blame-ignore-revs'
|
||||||
|
|
||||||
|
|||||||
@@ -1214,7 +1214,7 @@ class CheckGitVersionTest(GitCommonTestBase):
|
|||||||
def testGitSufficientVersion(self, mockRun, mockWhich, mockCog):
|
def testGitSufficientVersion(self, mockRun, mockWhich, mockCog):
|
||||||
mockCog.return_value = False
|
mockCog.return_value = False
|
||||||
mockWhich.return_value = '/example/bin/git'
|
mockWhich.return_value = '/example/bin/git'
|
||||||
mockRun.return_value = 'git version 2.30.1.456'
|
mockRun.return_value = 'git version 2.51.1.851'
|
||||||
|
|
||||||
self.assertIsNone(self.gc.check_git_version())
|
self.assertIsNone(self.gc.check_git_version())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user