aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/update.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-06-29 22:31:46 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-06-29 22:31:46 +0800
commitbe123588ced4662048d6c3bd10cac67aac46129b (patch)
treeaa0f99eb6840f1af827b142459702358d6b164b3 /cmd/update.go
parent99713e1180ad149faf6442bba311fec6e501aa00 (diff)
downloadgitea-be123588ced4662048d6c3bd10cac67aac46129b.tar.gz
gitea-be123588ced4662048d6c3bd10cac67aac46129b.zip
clear comments
Diffstat (limited to 'cmd/update.go')
-rw-r--r--cmd/update.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/cmd/update.go b/cmd/update.go
index 551fd09ef3..bee30b89c9 100644
--- a/cmd/update.go
+++ b/cmd/update.go
@@ -35,10 +35,6 @@ func runUpdate(c *cli.Context) {
log.GitLogger.Fatal("refName is empty, shouldn't use")
}
- //userName := os.Getenv("userName")
- //userId, _ := strconv.ParseInt(os.Getenv("userId"), 10, 64)
- //repoUserName := os.Getenv("repoUserName")
- //repoName := os.Getenv("repoName")
uuid := os.Getenv("uuid")
task := models.UpdateTask{
@@ -48,14 +44,7 @@ func runUpdate(c *cli.Context) {
NewCommitId: args[2],
}
- log.GitLogger.Error("%v", task)
-
if err := models.AddUpdateTask(&task); err != nil {
log.GitLogger.Fatal(err.Error())
}
-
- /*if err := models.Update(args[0], args[1], args[2], userName, repoUserName, repoName, userId); err != nil {
- log.GitLogger.Fatal(err.Error())
- }*/
- //setEnvs(args[0], args[1], args[2], userName, repoUserName, repoName, userId)
}