提交 28aaef24 编写于 作者: R Rubén Dávila 提交者: Robert Speicher

Don't use `self` when looking for cross-references!

上级 169070ba
......@@ -247,7 +247,7 @@ class Commit
def has_been_reverted?(current_user = nil, noteable = self)
Gitlab::ReferenceExtractor.lazily do
[self, *noteable.notes].flat_map do |note|
noteable.notes.system.flat_map do |note|
note.all_references(current_user).commits
end
end.any? { |commit_ref| commit_ref.reverts_commit?(self) }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册