1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-07 19:05:22 +02:00

Git installation check, show image in single file view, show short SHA1 instead of 40-length string, complete log module

This commit is contained in:
Unknwon 2014-07-26 18:37:18 -04:00
parent 02a81ddb62
commit 5e81383413
16 changed files with 359 additions and 38 deletions

View file

@ -54,11 +54,12 @@ func GlobalInit() {
log.Trace("Log path: %s", setting.LogRootPath)
mailer.NewMailerContext()
models.LoadModelsConfig()
models.LoadRepoConfig()
models.NewRepoContext()
NewServices()
if setting.InstallLock {
models.LoadRepoConfig()
models.NewRepoContext()
if err := models.NewEngine(); err != nil {
log.Fatal(4, "Fail to initialize ORM engine: %v", err)
}