|
@@ -33,18 +33,12 @@ func runUpdate(c *cli.Context) {
|
|
|
base.NewConfigContext()
|
|
|
models.LoadModelsConfig()
|
|
|
models.NewEngine()
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
w, _ := os.Create("update.log")
|
|
|
defer w.Close()
|
|
|
|
|
|
log.SetOutput(w)
|
|
|
|
|
|
-
|
|
|
-
|
|
|
args := c.Args()
|
|
|
if len(args) != 3 {
|
|
|
log.Error("received less 3 parameters")
|
|
@@ -143,7 +137,7 @@ func runUpdate(c *cli.Context) {
|
|
|
|
|
|
|
|
|
if err = models.CommitRepoAction(int64(sUserId), userName,
|
|
|
- repos.Id, repoName, refName, &base.PushCommits{l.Len(), commits}); err != nil {
|
|
|
+ repos.Id, repoName, git.BranchName(refName), &base.PushCommits{l.Len(), commits}); err != nil {
|
|
|
log.Error("runUpdate.models.CommitRepoAction: %v", err)
|
|
|
}
|
|
|
}
|