summaryrefslogtreecommitdiffstats
path: root/models/update.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-25 20:35:56 -0400
committerUnknwon <u@gogs.io>2015-09-25 20:35:56 -0400
commit6dfee30bf0a6faef3211eb9fd1587c4fd8e87eef (patch)
tree0200056e4ad2bc5f7de3840429c17265ff0b0ce7 /models/update.go
parent21e13cb51e73471d186b963e26404f89abd81fce (diff)
downloadgitea-6dfee30bf0a6faef3211eb9fd1587c4fd8e87eef.tar.gz
gitea-6dfee30bf0a6faef3211eb9fd1587c4fd8e87eef.zip
#1602 Wrong commit order on issue page when pushing multiple commits
Diffstat (limited to 'models/update.go')
-rw-r--r--models/update.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/models/update.go b/models/update.go
index f381d6fd07..2fd00ad7e8 100644
--- a/models/update.go
+++ b/models/update.go
@@ -23,10 +23,6 @@ type UpdateTask struct {
NewCommitId string
}
-const (
- MAX_COMMITS int = 5
-)
-
func AddUpdateTask(task *UpdateTask) error {
_, err := x.Insert(task)
return err
@@ -147,10 +143,8 @@ func Update(refName, oldCommitId, newCommitId, userName, repoUserName, repoName
&base.PushCommit{commit.Id.String(),
commit.Message(),
commit.Author.Email,
- commit.Author.Name})
- if len(commits) >= MAX_COMMITS {
- break
- }
+ commit.Author.Name,
+ })
}
if err = CommitRepoAction(userId, ru.Id, userName, actEmail,