summaryrefslogtreecommitdiffstats
path: root/gogs.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-07 17:22:15 -0500
committerUnknown <joe2010xtmf@163.com>2014-03-07 17:22:15 -0500
commit5a05d6633d413b1c5182a0a542e173f99601a103 (patch)
treeb6d343ca8c998909839d1364f466f7af223fdd1b /gogs.go
parenta2a59f8ad1192d3504abd50b2daf2ebfd97c86ca (diff)
downloadgitea-5a05d6633d413b1c5182a0a542e173f99601a103.tar.gz
gitea-5a05d6633d413b1c5182a0a542e173f99601a103.zip
Merge utils to modules
Diffstat (limited to 'gogs.go')
-rw-r--r--gogs.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/gogs.go b/gogs.go
index 7bbcd803e5..552a4db272 100644
--- a/gogs.go
+++ b/gogs.go
@@ -11,7 +11,7 @@ import (
"runtime"
"github.com/codegangsta/cli"
- "github.com/gogits/gogs/utils"
+ "github.com/gogits/gogs/modules/base"
)
// +build go1.1
@@ -31,12 +31,12 @@ func checkRunUser() bool {
// TODO: log
return false
}
- return user.Username == utils.Cfg.MustValue("", "RUN_USER")
+ return user.Username == base.Cfg.MustValue("", "RUN_USER")
}
func main() {
/*if !checkRunUser() {
- println("The command should be run as", utils.Cfg.MustValue("", "RUN_USER"))
+ println("The command should be run as", base.Cfg.MustValue("", "RUN_USER"))
return
}*/