aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/update.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-10-24 03:36:47 -0400
committerUnknwon <u@gogs.io>2015-10-24 03:36:47 -0400
commit0fbb8c8826771e92e890fb1c72b356d3e62c7b01 (patch)
tree2695707e4789a6611fa35393b06631848657469a /cmd/update.go
parente0aab4a7f6c1f1b5cc7fa40e2c09623b635bc4a6 (diff)
downloadgitea-0fbb8c8826771e92e890fb1c72b356d3e62c7b01.tar.gz
gitea-0fbb8c8826771e92e890fb1c72b356d3e62c7b01.zip
New push to head repo of head branch: regenerate patch and retest apply
Diffstat (limited to 'cmd/update.go')
-rw-r--r--cmd/update.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/update.go b/cmd/update.go
index c9eaeccf7b..64093b8177 100644
--- a/cmd/update.go
+++ b/cmd/update.go
@@ -45,13 +45,13 @@ func runUpdate(c *cli.Context) {
uuid := os.Getenv("uuid")
task := models.UpdateTask{
- Uuid: uuid,
+ UUID: uuid,
RefName: args[0],
- OldCommitId: args[1],
- NewCommitId: args[2],
+ OldCommitID: args[1],
+ NewCommitID: args[2],
}
if err := models.AddUpdateTask(&task); err != nil {
- log.GitLogger.Fatal(2, err.Error())
+ log.GitLogger.Fatal(2, "AddUpdateTask: %v", err)
}
}