summaryrefslogtreecommitdiffstats
path: root/models/action.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-10 16:27:47 -0500
committerUnknwon <u@gogs.io>2015-12-10 16:27:47 -0500
commit99e9bbef6c291e983ec919406ed50a91b929c34c (patch)
treee058ffae83c704edd6ff881ad78d791eb58ecbb0 /models/action.go
parent0e96a46020564af8a0061ccea09893422a48cc26 (diff)
downloadgitea-99e9bbef6c291e983ec919406ed50a91b929c34c.tar.gz
gitea-99e9bbef6c291e983ec919406ed50a91b929c34c.zip
fix bool check for repo max limit and fix hang when push repo with tons of commits
Diffstat (limited to 'models/action.go')
-rw-r--r--models/action.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/models/action.go b/models/action.go
index 2c8eed85f2..89003214dd 100644
--- a/models/action.go
+++ b/models/action.go
@@ -440,10 +440,6 @@ func CommitRepoAction(
isNewBranch = true
}
- // NOTE: limit to detect latest 100 commits.
- if len(commit.Commits) > 100 {
- commit.Commits = commit.Commits[len(commit.Commits)-100:]
- }
if err = updateIssuesCommit(u, repo, repoUserName, repoName, commit.Commits); err != nil {
log.Error(4, "updateIssuesCommit: %v", err)
}