Move push commits from models to modules/repository (#9370)
* Move push commits from models to modules/repository * fix test * fix test * fix test * fix test * fix test Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
@ -403,7 +403,7 @@ func syncMirror(repoID string) {
|
||||
continue
|
||||
}
|
||||
|
||||
theCommits := models.ListToPushCommits(commits)
|
||||
theCommits := repository.ListToPushCommits(commits)
|
||||
if len(theCommits.Commits) > setting.UI.FeedMaxCommitNum {
|
||||
theCommits.Commits = theCommits.Commits[:setting.UI.FeedMaxCommitNum]
|
||||
}
|
||||
|
Reference in New Issue
Block a user