diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-30 16:01:50 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-30 16:01:50 -0400 |
commit | 2a0066420a9395e5fa5afcd9be4d094a48eee3fa (patch) | |
tree | 7529650f4c78f9113ac4d9f7f307a4d92255e6cf /update.go | |
parent | d0e6a4c25acc3414f6d0f93cc50e6dcb41111c19 (diff) | |
download | gitea-2a0066420a9395e5fa5afcd9be4d094a48eee3fa.tar.gz gitea-2a0066420a9395e5fa5afcd9be4d094a48eee3fa.zip |
Fix bug work with sqlite3
Diffstat (limited to 'update.go')
-rw-r--r-- | update.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -32,6 +32,12 @@ gogs serv provide access auth for repositories`, func runUpdate(c *cli.Context) { base.NewConfigContext() models.LoadModelsConfig() + + if models.UseSQLite3 { + execDir, _ := base.ExecDir() + os.Chdir(execDir) + } + models.SetEngine() w, _ := os.Create("update.log") |