Skip to content
Snippets Groups Projects

Draft: Only check index integrity when commit_count is > 0

Closed Terri Chu requested to merge 214601-refactor-when-blobs-are-missing into master
1 unresolved thread
Files
3
@@ -1081,7 +1081,7 @@ def predefined_push_rule
end
def should_check_index_integrity?
use_elasticsearch? && repository_exists? && !empty_repo? && project.statistics&.commit_count.to_i > 0
use_elasticsearch? && !empty_repo? && statistics&.commit_count.to_i > 0
end
def resource_parent
Loading