diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-16 22:32:50 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-16 22:32:50 +0800 |
commit | f824d6a4b11d4d8ddc82d54c5183934b465afbd3 (patch) | |
tree | 3586b1746fd2097834685e0ee589de7b1a0c10b0 /gogs.go | |
parent | f620f23c35f76a97f945f210638d4be8920e189e (diff) | |
parent | 9557cfc6534d2a215f6c6da73468aea1e3edd61f (diff) |
Merge branch 'master' of github.com:gogits/gogs
Diffstat (limited to 'gogs.go')
-rw-r--r-- | gogs.go | 24 |
1 files changed, 11 insertions, 13 deletions
@@ -7,7 +7,7 @@ package main import ( "os" - "os/user" + // "os/user" "runtime" "github.com/codegangsta/cli" @@ -20,21 +20,21 @@ import ( // Test that go1.1 tag above is included in builds. main.go refers to this definition. const go11tag = true -const APP_VER = "0.0.8.0315" +const APP_VER = "0.0.8.0316.1" func init() { base.AppVer = APP_VER runtime.GOMAXPROCS(runtime.NumCPU()) } -func checkRunUser() bool { - u, err := user.Current() - if err != nil { - // TODO: log - return false - } - return u.Username == base.Cfg.MustValue("", "RUN_USER") -} +// func checkRunUser() bool { +// u, err := user.Current() +// if err != nil { +// // TODO: log +// return false +// } +// return u.Username == base.Cfg.MustValue("", "RUN_USER") +// } func main() { /*if !checkRunUser() { @@ -51,8 +51,6 @@ func main() { CmdServ, CmdUpdate, } - app.Flags = append(app.Flags, []cli.Flag{ - cli.BoolFlag{"noterm", "disable color output"}, - }...) + app.Flags = append(app.Flags, []cli.Flag{}...) app.Run(os.Args) } |