aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/pr/checkout.go
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/pr/checkout.go')
-rw-r--r--contrib/pr/checkout.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/pr/checkout.go b/contrib/pr/checkout.go
index 65762a91e3..900b44d167 100644
--- a/contrib/pr/checkout.go
+++ b/contrib/pr/checkout.go
@@ -27,6 +27,7 @@ import (
"code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/models/unittest"
gitea_git "code.gitea.io/gitea/modules/git"
+ "code.gitea.io/gitea/modules/graceful"
"code.gitea.io/gitea/modules/markup"
"code.gitea.io/gitea/modules/markup/external"
repo_module "code.gitea.io/gitea/modules/repository"
@@ -117,7 +118,7 @@ func runPR() {
// routers.GlobalInit()
external.RegisterRenderers()
markup.Init()
- c := routers.NormalRoutes()
+ c := routers.NormalRoutes(graceful.GetManager().HammerContext())
log.Printf("[PR] Ready for testing !\n")
log.Printf("[PR] Login with user1, user2, user3, ... with pass: password\n")