Commit 3989d8b0 authored by Valery Sizov's avatar Valery Sizov

Performance improvement of push rules

parent 6a9dc4cb
......@@ -10,6 +10,7 @@ v 8.10.0 (unreleased)
- Fix of removing wiki data from index when project is deleted
- Ticket-based Kerberos authentication (SPNEGO)
- [Elastic] Suppress ActiveRecord::RecordNotFound error in ElasticIndexWorker
- Performance improvement of push rules
v.8.9.7 (unreleased)
- Fix error in admin dashboard when Geo is enabled and current node is nil.
......
......@@ -297,8 +297,7 @@ module Gitlab
end
def old_commit?(commit)
# We skip refs/tmp ref because we use it for Web UI commiting
commit.refs(project.repository).reject { |ref| ref.name.start_with?('refs/tmp') }.any?
commit.refs(project.repository).any?
end
end
end
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