diff options
Diffstat (limited to 'modules/setting/git.go')
-rw-r--r-- | modules/setting/git.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/setting/git.go b/modules/setting/git.go index d696f5f18a..968de55753 100644 --- a/modules/setting/git.go +++ b/modules/setting/git.go @@ -74,7 +74,7 @@ func newGit() { log.Fatal("Error retrieving git version: %v", err) } - if git.CheckGitVersionConstraint(">= 2.9") == nil { + if git.CheckGitVersionAtLeast("2.9") == nil { // Explicitly disable credential helper, otherwise Git credentials might leak git.GlobalCommandArgs = append(git.GlobalCommandArgs, "-c", "credential.helper=") } @@ -82,7 +82,7 @@ func newGit() { var format = "Git Version: %s" var args = []interface{}{version.Original()} // Since git wire protocol has been released from git v2.18 - if Git.EnableAutoGitWireProtocol && git.CheckGitVersionConstraint(">= 2.18") == nil { + if Git.EnableAutoGitWireProtocol && git.CheckGitVersionAtLeast("2.18") == nil { git.GlobalCommandArgs = append(git.GlobalCommandArgs, "-c", "protocol.version=2") format += ", Wire Protocol %s Enabled" args = append(args, "Version 2") // for focus color |