aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/update.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-04 21:57:10 -0500
committerUnknwon <u@gogs.io>2015-11-04 21:57:10 -0500
commitf255b1e86dae17dc0221b537d85f25bfa72a7912 (patch)
tree7b27cb470f8f2a3772bf02e756c0c2ba6f50cd96 /cmd/update.go
parent9372eedf2ea7e8ccf8b127843e592765cbc1b034 (diff)
downloadgitea-f255b1e86dae17dc0221b537d85f25bfa72a7912.tar.gz
gitea-f255b1e86dae17dc0221b537d85f25bfa72a7912.zip
#1896 fatal when no needed update task
Diffstat (limited to 'cmd/update.go')
-rw-r--r--cmd/update.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/update.go b/cmd/update.go
index 64093b8177..289aedbf61 100644
--- a/cmd/update.go
+++ b/cmd/update.go
@@ -42,10 +42,8 @@ func runUpdate(c *cli.Context) {
log.GitLogger.Fatal(2, "refName is empty, shouldn't use")
}
- uuid := os.Getenv("uuid")
-
task := models.UpdateTask{
- UUID: uuid,
+ UUID: os.Getenv("uuid"),
RefName: args[0],
OldCommitID: args[1],
NewCommitID: args[2],