aboutsummaryrefslogtreecommitdiff
path: root/gogs.go
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-25 19:39:57 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-25 19:39:57 +0800
commit9b7e2823ead36c90e656ce76fcbb464f7a490363 (patch)
tree201fdf621b9d1a5f3e954529e4e5d8e2f9429ac0 /gogs.go
parent5d67960b1e812c2b455c93ec9c86d72c9c9a7f5b (diff)
parentca49acfe67cee4b5d4be40519b83d9107833e60d (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'gogs.go')
-rw-r--r--gogs.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/gogs.go b/gogs.go
index 93b7231b..7ac699cc 100644
--- a/gogs.go
+++ b/gogs.go
@@ -7,7 +7,6 @@ package main
import (
"os"
- // "os/user"
"runtime"
"github.com/codegangsta/cli"
@@ -27,21 +26,7 @@ func init() {
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 main() {
- /*if !checkRunUser() {
- println("The command should be run as", base.Cfg.MustValue("", "RUN_USER"))
- return
- }*/
-
app := cli.NewApp()
app.Name = "Gogs"
app.Usage = "Go Git Service"