1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00

fix bool check for repo max limit and fix hang when push repo with tons of commits

This commit is contained in:
Unknwon
2015-12-10 16:27:47 -05:00
parent 0e96a46020
commit 99e9bbef6c
6 changed files with 8 additions and 9 deletions

View File

@@ -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)
}