summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-26 13:45:55 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-26 13:45:55 +0800
commit597f5ede1289ad18974bbe95150f28fa9d8a63e1 (patch)
treedc50010c052702c92670deab3c92bc8391361da7
parent87eb2c3665fa5f526255fe57cb36d33fa3640af7 (diff)
downloadgitea-597f5ede1289ad18974bbe95150f28fa9d8a63e1.tar.gz
gitea-597f5ede1289ad18974bbe95150f28fa9d8a63e1.zip
bug fixed
-rw-r--r--update.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/update.go b/update.go
index 17a44dd140..5c6d5b28ce 100644
--- a/update.go
+++ b/update.go
@@ -33,18 +33,12 @@ func runUpdate(c *cli.Context) {
base.NewConfigContext()
models.LoadModelsConfig()
models.NewEngine()
- //level := "0"
- //os.MkdirAll("log", os.ModePerm)
- //log.NewLogger(10000, "file", fmt.Sprintf(`{"level":%s,"filename":"%s"}`, level, "log/serv.log"))
- //log.Info("start update logging...")
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) {
//commits = append(commits, []string{lastCommit.Id().String(), lastCommit.Message()})
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)
}
}