diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-10-06 14:30:32 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-10-11 10:07:42 +0300 |
commit | c8c774edc79eaf33f5b46e4626b57846c7b5545a (patch) | |
tree | 88d73cd479958f66233eaedcad6fc8ed2c7a8b27 | |
parent | 6b964406e4f2a7a837c1a87de4a27c3f198ffc48 (diff) |
git: Bump minimum required Git version to v2.33.0
Recently, we have seen a lot of issues with git-cat-file(1) due to
inefficiencies. In many cases, we can improve the code to elide
additional filtering by using new object type filters which have been
introduced for git-rev-list(1) in Git v2.33.0, which in some cases may
even give us the ability to drop some pipeline steps altogether.
Bump the minimum required Git version to v2.33.0 such that we can always
make use of these object type filters.
Changelog: deprecated
-rw-r--r-- | internal/git/version.go | 4 | ||||
-rw-r--r-- | internal/git/version_test.go | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/internal/git/version.go b/internal/git/version.go index 7bb02eeb2..7447aaeff 100644 --- a/internal/git/version.go +++ b/internal/git/version.go @@ -17,9 +17,9 @@ import ( // - https://gitlab.com/gitlab-org/gitlab-foss/blob/master/.gitlab-ci.yml // - https://gitlab.com/gitlab-org/gitlab-foss/blob/master/lib/system_check/app/git_version_check.rb var minimumVersion = Version{ - versionString: "2.31.0", + versionString: "2.33.0", major: 2, - minor: 31, + minor: 33, patch: 0, rc: false, diff --git a/internal/git/version_test.go b/internal/git/version_test.go index 2a749d4c6..0cd3d620d 100644 --- a/internal/git/version_test.go +++ b/internal/git/version_test.go @@ -225,12 +225,12 @@ func TestVersion_IsSupported(t *testing.T) { {"2.24.0-rc0", false}, {"2.24.0", false}, {"2.25.0", false}, - {"2.30.0", false}, - {"2.31.0-rc0", false}, - {"2.31.0", true}, - {"2.31.0.gl0", true}, - {"2.31.0.gl1", true}, - {"2.31.1", true}, + {"2.32.0", false}, + {"2.33.0-rc0", false}, + {"2.33.0", true}, + {"2.33.0.gl0", true}, + {"2.33.0.gl1", true}, + {"2.33.1", true}, {"3.0.0", true}, {"3.0.0.gl5", true}, } { |