Commit 89ae2c2c authored by Patrick Steinhardt's avatar Patrick Steinhardt

Require Git v2.29.0

We have been moving our infrastructure to Git v2.29.0, so we can now
finally require use of that or a higher version. This is done to allow
us to make use of the following features:

- Split commit graphs, which have been introduced with Git v2.27.0.
  These allow more efficient creation of commit-graphs to speed up
  various operations on Git version history.

- Reference transaction hook, introduced with Git v2.28.0 and fixed with
  Git v2.29.0. This is required to implement strong consistency used by
  Gitaly and Praefect for all reference updates in a Git repository.
parent 1af30cd8
---
title: Require Git v2.29.0
merge_request: 46433
author:
type: changed
...@@ -135,7 +135,7 @@ Make sure you have the right version of Git installed: ...@@ -135,7 +135,7 @@ Make sure you have the right version of Git installed:
# Install Git # Install Git
sudo apt-get install -y git-core sudo apt-get install -y git-core
# Make sure Git is version 2.24.0 or higher (recommended version is 2.28.0) # Make sure Git is version 2.29.0 or higher (recommended version is 2.29.0)
git --version git --version
``` ```
......
...@@ -57,6 +57,10 @@ The minimum required Go version is 1.13. ...@@ -57,6 +57,10 @@ The minimum required Go version is 1.13.
### Git versions ### Git versions
From GitLab 13.6:
- Git 2.29.x and later is required.
From GitLab 13.1: From GitLab 13.1:
- Git 2.24.x and later is required. - Git 2.24.x and later is required.
......
...@@ -222,6 +222,10 @@ possible. ...@@ -222,6 +222,10 @@ possible.
## Version specific upgrading instructions ## Version specific upgrading instructions
### 13.6.0
The required Git version is Git v2.29 or higher.
### 13.3.0 ### 13.3.0
The recommended Git version is Git v2.28. The minimum required version of Git The recommended Git version is Git v2.28. The minimum required version of Git
......
...@@ -132,7 +132,7 @@ To check you are running the minimum required Git version, see ...@@ -132,7 +132,7 @@ To check you are running the minimum required Git version, see
In Debian or Ubuntu: In Debian or Ubuntu:
```shell ```shell
# Make sure Git is version 2.24.0 or higher # Make sure Git is version 2.29.0 or higher
git --version git --version
# Remove packaged Git # Remove packaged Git
......
...@@ -7,7 +7,7 @@ module SystemCheck ...@@ -7,7 +7,7 @@ module SystemCheck
set_check_pass -> { "yes (#{self.current_version})" } set_check_pass -> { "yes (#{self.current_version})" }
def self.required_version def self.required_version
@required_version ||= Gitlab::VersionInfo.parse('2.24.0') @required_version ||= Gitlab::VersionInfo.parse('2.29.0')
end end
def self.current_version def self.current_version
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment