Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/compare.rb')
-rw-r--r--app/models/compare.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/compare.rb b/app/models/compare.rb
index f1b0bf19c11..7f42e1ee491 100644
--- a/app/models/compare.rb
+++ b/app/models/compare.rb
@@ -40,7 +40,10 @@ class Compare
end
def commits
- @commits ||= Commit.decorate(@compare.commits, project)
+ @commits ||= begin
+ decorated_commits = Commit.decorate(@compare.commits, project)
+ CommitCollection.new(project, decorated_commits)
+ end
end
def start_commit