From 7bdf17ec29851b857bf88d5e5f39436799732dd6 Mon Sep 17 00:00:00 2001 From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Tue, 31 Dec 2019 21:54:56 -0600 Subject: [PATCH] Use limited commits (#9572) Signed-off-by: jolheiser --- services/mirror/mirror.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/mirror/mirror.go b/services/mirror/mirror.go index 7fc6e97b4..28b2e2a12 100644 --- a/services/mirror/mirror.go +++ b/services/mirror/mirror.go @@ -410,7 +410,7 @@ func syncMirror(repoID string) { theCommits.CompareURL = m.Repo.ComposeCompareURL(oldCommitID, newCommitID) - notification.NotifySyncPushCommits(m.Repo.MustOwner(), m.Repo, result.refName, oldCommitID, newCommitID, models.ListToPushCommits(commits)) + notification.NotifySyncPushCommits(m.Repo.MustOwner(), m.Repo, result.refName, oldCommitID, newCommitID, theCommits) } // Get latest commit date and update to current repository updated time