summaryrefslogtreecommitdiffstats
path: root/modules/git/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/command.go')
-rw-r--r--modules/git/command.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/git/command.go b/modules/git/command.go
index d6221ce268..347dcfe39f 100644
--- a/modules/git/command.go
+++ b/modules/git/command.go
@@ -12,6 +12,8 @@ import (
"os/exec"
"strings"
"time"
+
+ "code.gitea.io/gitea/modules/process"
)
var (
@@ -84,6 +86,9 @@ func (c *Command) RunInDirTimeoutEnvFullPipeline(env []string, timeout time.Dura
return err
}
+ pid := process.GetManager().Add(fmt.Sprintf("%s %s %s [repo_path: %s]", GitExecutable, c.name, strings.Join(c.args, " "), dir), cmd)
+ defer process.GetManager().Remove(pid)
+
if err := cmd.Wait(); err != nil {
return err
}