1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 02:08:36 +00:00

Fix bug work with sqlite3

This commit is contained in:
Unknown
2014-03-30 16:01:50 -04:00
parent d0e6a4c25a
commit 2a0066420a
8 changed files with 31 additions and 12 deletions

View File

@@ -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")