File tree 2 files changed +0
-15
lines changed
2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -165,10 +165,6 @@ func (c *Command) RunWithContext(rc *RunContext) error {
165
165
"GIT_TERMINAL_PROMPT=0" ,
166
166
)
167
167
168
- // TODO: verify if this is still needed in golang 1.15
169
- if goVersionLessThan115 {
170
- cmd .Env = append (cmd .Env , "GODEBUG=asyncpreemptoff=1" )
171
- }
172
168
cmd .Dir = rc .Dir
173
169
cmd .Stdout = rc .Stdout
174
170
cmd .Stderr = rc .Stderr
Original file line number Diff line number Diff line change 35
35
36
36
gitVersion * version.Version
37
37
38
- // will be checked on Init
39
- goVersionLessThan115 = true
40
-
41
38
// SupportProcReceive version >= 2.29.0
42
39
SupportProcReceive bool
43
40
)
@@ -156,14 +153,6 @@ func Init(ctx context.Context) error {
156
153
return err
157
154
}
158
155
159
- // Save if the go version used to compile gitea is greater or equal 1.15
160
- runtimeVersion , err := version .NewVersion (strings .TrimPrefix (runtime .Version (), "go" ))
161
- if err != nil {
162
- return err
163
- }
164
- version115 , _ := version .NewVersion ("1.15" )
165
- goVersionLessThan115 = runtimeVersion .LessThan (version115 )
166
-
167
156
// Git requires setting user.name and user.email in order to commit changes - if they're not set just add some defaults
168
157
for configKey ,
defaultValue := range map [
string ]
string {
"user.name" :
"Gitea" ,
"user.email" :
"[email protected] " } {
169
158
if err := checkAndSetConfig (configKey , defaultValue , false ); err != nil {
You can’t perform that action at this time.
0 commit comments