diff options
author | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-13 13:14:43 +0800 |
---|---|---|
committer | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-13 13:14:43 +0800 |
commit | 37fae304d3d335d5e0320a2bd73f86d410b71b84 (patch) | |
tree | c2c3b8bd2f0a693ab328caf56ea41ed13d32c075 /gogs.go | |
parent | f65d8f9144436d11cdce2614b3520271b31ae288 (diff) | |
download | gitea-37fae304d3d335d5e0320a2bd73f86d410b71b84.tar.gz gitea-37fae304d3d335d5e0320a2bd73f86d410b71b84.zip |
single repository page ui, add spec handler to get repo
Diffstat (limited to 'gogs.go')
-rw-r--r-- | gogs.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -20,19 +20,19 @@ 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.5.0311" +const APP_VER = "0.0.5.0313" func init() { runtime.GOMAXPROCS(runtime.NumCPU()) } func checkRunUser() bool { - user, err := user.Current() + u, err := user.Current() if err != nil { // TODO: log return false } - return user.Username == base.Cfg.MustValue("", "RUN_USER") + return u.Username == base.Cfg.MustValue("", "RUN_USER") } func main() { |