Commit d1d24019 authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch '226924-gitaly-n-1-queries-in-mergerequests-draftscontroller-4' into 'master'

Make keep around service commit's unique

See merge request gitlab-org/gitlab!70323
parents 7547a2cf e3b599c5
......@@ -19,7 +19,7 @@ module Gitlab
end
def execute(shas)
shas.each do |sha|
shas.uniq.each do |sha|
next unless sha.present? && commit_by(oid: sha)
next if kept_around?(sha)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment