summaryrefslogtreecommitdiffstats
path: root/routers/install.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-09-02 23:18:37 -0400
committerUnknwon <u@gogs.io>2016-09-02 23:18:37 -0400
commit6da55159a2af518f5d7e5cafbb50c356d9e96383 (patch)
tree2785b7c2f4114ce678555d64763699758b688890 /routers/install.go
parentc50d59874d88150081f5fec6b385cfdf4eb3ed84 (diff)
downloadgitea-6da55159a2af518f5d7e5cafbb50c356d9e96383.tar.gz
gitea-6da55159a2af518f5d7e5cafbb50c356d9e96383.zip
#3589 LoadRepoConfig after ORM is initialized
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/install.go b/routers/install.go
index 00171faa5f..651f2f2f5d 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -65,14 +65,14 @@ func GlobalInit() {
if setting.InstallLock {
highlight.NewContext()
markdown.BuildSanitizer()
-
- models.LoadRepoConfig()
- models.NewRepoContext()
if err := models.NewEngine(); err != nil {
log.Fatal(4, "Fail to initialize ORM engine: %v", err)
}
models.HasEngine = true
+ models.LoadRepoConfig()
+ models.NewRepoContext()
+
// Booting long running goroutines.
cron.NewContext()
models.InitSyncMirrors()