1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-12 13:37:20 +00:00

Try to figure out attribute checker problem (#33901) (#33902)

Backport #33901
This commit is contained in:
wxiaoguang
2025-03-18 02:59:51 +08:00
committed by GitHub
parent 5fadcf997e
commit 92280637a4
4 changed files with 96 additions and 15 deletions

View File

@ -46,6 +46,7 @@ type Command struct {
desc string
globalArgsLength int
brokenArgs []string
cmd *exec.Cmd // for debug purpose only
}
func (c *Command) String() string {
@ -314,6 +315,7 @@ func (c *Command) Run(opts *RunOpts) error {
startTime := time.Now()
cmd := exec.CommandContext(ctx, c.prog, c.args...)
c.cmd = cmd // for debug purpose only
if opts.Env == nil {
cmd.Env = os.Environ()
} else {