aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/update.go
diff options
context:
space:
mode:
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)
}
}