diff options
author | Unknwon <joe2010xtmf@163.com> | 2015-02-14 17:01:33 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2015-02-14 17:01:33 -0500 |
commit | 685ed1f8075c0fedc2cfaf0f8c43f9439132e1da (patch) | |
tree | 29eef97c91612d15bd56ee4bf06d0df98083b6ba /cmd | |
parent | a38e4a0b027f7be1f5523dc8e729f6f8300a8095 (diff) | |
download | gitea-685ed1f8075c0fedc2cfaf0f8c43f9439132e1da.tar.gz gitea-685ed1f8075c0fedc2cfaf0f8c43f9439132e1da.zip |
models: fix XORM API break
cmd/web.go: check version after load config
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 3284acb9df..4b06a882c0 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -166,12 +166,11 @@ func newMacaron() *macaron.Macaron { } func runWeb(ctx *cli.Context) { - checkVersion() - if ctx.IsSet("config") { setting.CustomConf = ctx.String("config") } routers.GlobalInit() + checkVersion() m := newMacaron() |