diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-10 17:34:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-10 17:34:21 +0800 |
commit | 99d869fa63e07780f1a17d1a9599187b9b689d9b (patch) | |
tree | ecadeba077cf0ae58d0a21f232d280fec60c779a /services/mirror | |
parent | 384c2b342ec01fadb520572666127cb5564e1050 (diff) | |
download | gitea-99d869fa63e07780f1a17d1a9599187b9b689d9b.tar.gz gitea-99d869fa63e07780f1a17d1a9599187b9b689d9b.zip |
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>
Diffstat (limited to 'services/mirror')
-rw-r--r-- | services/mirror/mirror.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/mirror/mirror.go b/services/mirror/mirror.go index 28b2e2a127..d4f97c2600 100644 --- a/services/mirror/mirror.go +++ b/services/mirror/mirror.go @@ -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] } |