Skip to content

Commit f21180e

Browse files
committed
bump git requirement to 2.24
1 parent d528d66 commit f21180e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/git/git.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
)
2525

2626
// RequiredVersion is the minimum Git version required
27-
const RequiredVersion = "2.0.0"
27+
const RequiredVersion = "2.24.0"
2828

2929
var (
3030
// GitExecutable is the command name of git
@@ -116,8 +116,7 @@ func VersionInfo() string {
116116
}
117117
format := "%s"
118118
args := []interface{}{gitVersion.Original()}
119-
// Since git wire protocol has been released from git v2.18
120-
if setting.Git.EnableAutoGitWireProtocol && CheckGitVersionAtLeast("2.18") == nil {
119+
if setting.Git.EnableAutoGitWireProtocol {
121120
format += ", Wire Protocol %s Enabled"
122121
args = append(args, "Version 2") // for focus color
123122
}

0 commit comments

Comments
 (0)