summaryrefslogtreecommitdiffstats
path: root/services/mirror/mirror.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/mirror/mirror.go')
-rw-r--r--services/mirror/mirror.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/services/mirror/mirror.go b/services/mirror/mirror.go
index fc494bfce2..cfef55f2a7 100644
--- a/services/mirror/mirror.go
+++ b/services/mirror/mirror.go
@@ -472,7 +472,11 @@ func syncMirror(repoID string) {
theCommits.CompareURL = m.Repo.ComposeCompareURL(oldCommitID, newCommitID)
- notification.NotifySyncPushCommits(m.Repo.MustOwner(), m.Repo, result.refName, oldCommitID, newCommitID, theCommits)
+ notification.NotifySyncPushCommits(m.Repo.MustOwner(), m.Repo, &repo_module.PushUpdateOptions{
+ RefFullName: result.refName,
+ OldCommitID: oldCommitID,
+ NewCommitID: newCommitID,
+ }, theCommits)
}
log.Trace("SyncMirrors [repo: %-v]: done notifying updated branches/tags - now updating last commit time", m.Repo)