diff --git a/modules/git/command.go b/modules/git/command.go index c1f386073..53a04f64b 100644 --- a/modules/git/command.go +++ b/modules/git/command.go @@ -119,6 +119,8 @@ func (c *Command) RunInDirTimeoutEnvFullPipelineFunc(env []string, timeout time. cmd.Env = env cmd.Env = append(cmd.Env, fmt.Sprintf("LC_ALL=%s", DefaultLocale)) } + + cmd.Env = append(cmd.Env, "GODEBUG=asyncpreemptoff=1") cmd.Dir = dir cmd.Stdout = stdout cmd.Stderr = stderr