Skip to content
Snippets Groups Projects
Commit 28aaef24 authored by Rubén Dávila's avatar Rubén Dávila Committed by Robert Speicher
Browse files

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

parent 169070ba
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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) }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment