aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorzeripath2022-01-19 23:26:57 +0000
committerGitHub2022-01-19 23:26:57 +0000
commit5cb0c9aa0d7eed087055b1efca79628957207d36 (patch)
treed117a514e1f17e5f6bfcda1be273f6a971112663 /tools
parent4563148a61ba892e8f2bb66342f00a950bcd5315 (diff)
Propagate context and ensure git commands run in request context (#17868)
This PR continues the work in #17125 by progressively ensuring that git commands run within the request context. This now means that the if there is a git repo already open in the context it will be used instead of reopening it. Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/fuzz.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/fuzz.go b/tools/fuzz.go
index 2f980b3b8..d629096ed 100644
--- a/tools/fuzz.go
+++ b/tools/fuzz.go
@@ -9,6 +9,7 @@ package fuzz
import (
"bytes"
+ "context"
"io"
"code.gitea.io/gitea/modules/markup"
@@ -25,6 +26,7 @@ import (
var (
renderContext = markup.RenderContext{
+ Ctx: context.Background(),
URLPrefix: "https://example.com/go-gitea/gitea",
Metas: map[string]string{
"user": "go-gitea",