aboutsummaryrefslogtreecommitdiffstats
path: root/routers/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/init.go')
-rw-r--r--routers/init.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/routers/init.go b/routers/init.go
index 8cf53fc108..c539975aca 100644
--- a/routers/init.go
+++ b/routers/init.go
@@ -71,13 +71,6 @@ func mustInitCtx(ctx context.Context, fn func(ctx context.Context) error) {
}
}
-// InitGitServices init new services for git, this is also called in `contrib/pr/checkout.go`
-func InitGitServices() {
- setting.LoadSettings()
- mustInit(storage.Init)
- mustInit(repo_service.Init)
-}
-
func syncAppConfForGit(ctx context.Context) error {
runtimeState := new(system.RuntimeState)
if err := system.AppState.Get(runtimeState); err != nil {
@@ -172,7 +165,7 @@ func GlobalInitInstalled(ctx context.Context) {
mustInit(ssh.Init)
auth.Init()
- svg.Init()
+ mustInit(svg.Init)
actions_service.Init()