diff options
author | Gusted <williamzijl7@hotmail.com> | 2022-02-01 03:46:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 03:46:45 +0100 |
commit | f87d5ea9eed7749739e93c0687ff161e69fc4ca3 (patch) | |
tree | b31fa397dd070ebe723fdf7c3ff300004ee7108d /modules/git/git.go | |
parent | [skip ci] Updated translations via Crowdin (diff) | |
download | forgejo-f87d5ea9eed7749739e93c0687ff161e69fc4ca3.tar.xz forgejo-f87d5ea9eed7749739e93c0687ff161e69fc4ca3.zip |
Remove go 1.15 support (#18511)
- Remove support for go 1.15(go.mod already requires go 1.16).
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Diffstat (limited to 'modules/git/git.go')
-rw-r--r-- | modules/git/git.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/modules/git/git.go b/modules/git/git.go index 217e6955c2..8b29bee472 100644 --- a/modules/git/git.go +++ b/modules/git/git.go @@ -35,9 +35,6 @@ var ( gitVersion *version.Version - // will be checked on Init - goVersionLessThan115 = true - // SupportProcReceive version >= 2.29.0 SupportProcReceive bool ) @@ -156,14 +153,6 @@ func Init(ctx context.Context) error { return err } - // Save if the go version used to compile gitea is greater or equal 1.15 - runtimeVersion, err := version.NewVersion(strings.TrimPrefix(runtime.Version(), "go")) - if err != nil { - return err - } - version115, _ := version.NewVersion("1.15") - goVersionLessThan115 = runtimeVersion.LessThan(version115) - // Git requires setting user.name and user.email in order to commit changes - if they're not set just add some defaults for configKey, defaultValue := range map[string]string{"user.name": "Gitea", "user.email": "gitea@fake.local"} { if err := checkAndSetConfig(configKey, defaultValue, false); err != nil { |