theCommits.Commits = theCommits.Commits[:setting.UI.FeedMaxCommitNum]
}
+ if newCommit, err := gitRepo.GetCommit(newCommitID); err != nil {
+ log.Error("SyncMirrors [repo: %-v]: unable to get commit %s: %v", m.Repo, newCommitID, err)
+ continue
+ } else {
+ theCommits.HeadCommit = repo_module.CommitToPushCommit(newCommit)
+ }
+
theCommits.CompareURL = m.Repo.ComposeCompareURL(oldCommitID, newCommitID)
notification.NotifySyncPushCommits(ctx, m.Repo.MustOwner(ctx), m.Repo, &repo_module.PushUpdateOptions{