aboutsummaryrefslogtreecommitdiff
path: root/cmd/update.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-03 01:38:22 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-03 01:38:22 -0400
commitbb0bc0a240acf745001c1cb3f0f64c8fb8ab696b (patch)
tree1c01cccd2fab6896017c1a90f5551d2eda2d0439 /cmd/update.go
parent163fcec59fd110db9edd459a06671962d48d87fa (diff)
parent7b60756f2c56314af715fa884388a5654bbfb791 (diff)
Merge branch 'dev' of github.com:gogits/gogs
Diffstat (limited to 'cmd/update.go')
-rw-r--r--cmd/update.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/update.go b/cmd/update.go
index b2c73f93..d7efe87f 100644
--- a/cmd/update.go
+++ b/cmd/update.go
@@ -76,10 +76,10 @@ func runUpdate(c *cli.Context) {
//updateEnv(args[0], args[1], args[2])
userName := os.Getenv("userName")
- userId := os.Getenv("userId")
- iUserId, _ := strconv.ParseInt(userId, 10, 64)
+ userId, _ := strconv.ParseInt(os.Getenv("userId"), 10, 64)
//repoId := os.Getenv("repoId")
+ repoUserName := os.Getenv("repoUserName")
repoName := os.Getenv("repoName")
- models.Update(args[0], args[1], args[2], userName, repoName, iUserId)
+ models.Update(args[0], args[1], args[2], userName, repoUserName, repoName, userId)
}