summaryrefslogtreecommitdiffstats
path: root/cmd/fix.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-25 20:11:25 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-25 20:11:25 -0400
commit688ec6ecbdf0e1c450aa93fdc4d760c4ae63a73f (patch)
tree8adb59c369d1fe1bd41ae7be38785dc613a29a91 /cmd/fix.go
parent87854c95a90cf1bebe1bffb833389471fb35f234 (diff)
downloadgitea-688ec6ecbdf0e1c450aa93fdc4d760c4ae63a73f.tar.gz
gitea-688ec6ecbdf0e1c450aa93fdc4d760c4ae63a73f.zip
Fixed #209
Diffstat (limited to 'cmd/fix.go')
-rw-r--r--cmd/fix.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/fix.go b/cmd/fix.go
index 809c00396f..3c2278ba90 100644
--- a/cmd/fix.go
+++ b/cmd/fix.go
@@ -10,7 +10,7 @@ import (
"github.com/codegangsta/cli"
"github.com/gogits/gogs/models"
- "github.com/gogits/gogs/modules/base"
+ "github.com/gogits/gogs/modules/setting"
)
var CmdFix = cli.Command{
@@ -22,14 +22,14 @@ var CmdFix = cli.Command{
}
func runFix(k *cli.Context) {
- execDir, _ := base.ExecDir()
- newLogger(execDir)
+ workDir, _ := setting.WorkDir()
+ newLogger(workDir)
- base.NewConfigContext()
+ setting.NewConfigContext()
models.LoadModelsConfig()
if models.UseSQLite3 {
- os.Chdir(execDir)
+ os.Chdir(workDir)
}
models.SetEngine()