diff options
author | micael.bergeron <micaelbergeron@gmail.com> | 2017-12-07 18:35:56 +0300 |
---|---|---|
committer | micael.bergeron <micaelbergeron@gmail.com> | 2017-12-07 18:35:56 +0300 |
commit | daf9357aa92283e6cdd0d1e0cade65c8e2294540 (patch) | |
tree | 14a30df2cc58d580d9e659a24876b1202ccb9303 /lib | |
parent | 360b94ceba146935a40b02f39ed3d833eaea134a (diff) |
fix the missing reference to #references_per_project
Diffstat (limited to 'lib')
-rw-r--r-- | lib/banzai/filter/commit_reference_filter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/filter/commit_reference_filter.rb b/lib/banzai/filter/commit_reference_filter.rb index c202d71072e..eedb95197aa 100644 --- a/lib/banzai/filter/commit_reference_filter.rb +++ b/lib/banzai/filter/commit_reference_filter.rb @@ -26,7 +26,7 @@ module Banzai return [] unless noteable.is_a?(MergeRequest) @referenced_merge_request_commit_shas ||= begin - referenced_shas = references_per_project.values.reduce(:|).to_a + referenced_shas = references_per_parent.values.reduce(:|).to_a noteable.all_commit_shas.select do |sha| referenced_shas.any? { |ref| Gitlab::Git.shas_eql?(sha, ref) } end |