diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-12-21 14:49:48 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-12-21 14:51:48 +0300 |
commit | d2021eb33549319da75a1b80642768bb397cecd2 (patch) | |
tree | e22f4bd346944c48bf78484680de4a16d761786a | |
parent | afd1f74ddd53049344ca3f3416fe605b7c3fd6c9 (diff) |
git: Bump minimum required Git version to v2.38.0
Git v2.38.0 brings some important changes with it that we want to build
on:
- It fixes a source of corruption when upgrading commit-graphs that
contain generation data in v1 to v2. We currently had to disable
use of generation data completely because of that bug so that we
don't corrupt repositories. This information is important though
to speed up some computations, like for example in the packfile
negotiation.
- git-merge-tree(1) learned two merge two trees. This is important
to allow us to do in-memory merges.
- git-cat-file(1) starts to support mailmaps, which is important for
us to support them in Gitaly.
- git-clone(1) has clearned about bundle URIs, which allows
offloading parts of a clone to a CDN.
Bump the minimum required Git version to v2.38.0.
Changelog: changed
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | internal/git/version.go | 4 | ||||
-rw-r--r-- | internal/git/version_test.go | 10 |
3 files changed, 8 insertions, 8 deletions
@@ -58,7 +58,7 @@ Most users won't install Gitaly on its own. It is already included in Gitaly requires Go 1.18 or Go 1.19 and Ruby 2.7. Run `make` to download and compile Ruby dependencies, and to compile the Gitaly Go executable. -Gitaly uses `git`. Versions `2.37.0` and newer are supported. +Gitaly uses `git`. Versions `2.38.0` and newer are supported. ## Configuration diff --git a/internal/git/version.go b/internal/git/version.go index 5bee93ccf..6dc533726 100644 --- a/internal/git/version.go +++ b/internal/git/version.go @@ -16,9 +16,9 @@ import ( // - https://docs.gitlab.com/ee/install/installation.html#software-requirements // - https://docs.gitlab.com/ee/update/ (see e.g. https://docs.gitlab.com/ee/update/#1440) var minimumVersion = Version{ - versionString: "2.37.0", + versionString: "2.38.0", major: 2, - minor: 37, + minor: 38, patch: 0, rc: false, diff --git a/internal/git/version_test.go b/internal/git/version_test.go index b7c5c6cd2..08f3e9a6e 100644 --- a/internal/git/version_test.go +++ b/internal/git/version_test.go @@ -109,11 +109,11 @@ func TestVersion_IsSupported(t *testing.T) { {"2.24.0", false}, {"2.25.0", false}, {"2.32.0", false}, - {"2.37.0-rc0", false}, - {"2.37.0", true}, - {"2.37.0.gl0", true}, - {"2.37.0.gl1", true}, - {"2.37.1", true}, + {"2.38.0-rc0", false}, + {"2.38.0", true}, + {"2.38.0.gl0", true}, + {"2.38.0.gl1", true}, + {"2.38.1", true}, {"3.0.0", true}, {"3.0.0.gl5", true}, } { |