Commit 455c4f7c authored by Stan Hu's avatar Stan Hu Committed by Igor Drozdov

Scope lfs_check feature flag by project

parent baf5363d
......@@ -7,9 +7,9 @@ module Gitlab
ERROR_MESSAGE = 'LFS objects are missing. Ensure LFS is properly set up or try a manual "git lfs push --all".'
def validate!
# This feature flag is used for disabling integrify check on some envs
# This feature flag is used for disabling integrity check on some envs
# because these costy calculations may cause performance issues
return unless Feature.enabled?(:lfs_check, default_enabled: true)
return unless Feature.enabled?(:lfs_check, project, default_enabled: :yaml)
return unless project.lfs_enabled?
......
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