summaryrefslogtreecommitdiff
path: root/lib/gitlab/checks
diff options
context:
space:
mode:
authorIgor <idrozdov@gitlab.com>2019-04-23 13:01:17 +0000
committerDouwe Maan <douwe@gitlab.com>2019-04-23 13:01:17 +0000
commitfb1b1956d35f56e2a981d1c5c190ffc1f040e7f6 (patch)
treea399f4ee803c4982b9f89d670847585a2cd76a8c /lib/gitlab/checks
parenta59b97d74bb5ea81f1ae99e2bce7d7d75dad53cc (diff)
downloadgitlab-ce-fb1b1956d35f56e2a981d1c5c190ffc1f040e7f6.tar.gz
Add feature flag to disable LFS check
Diffstat (limited to 'lib/gitlab/checks')
-rw-r--r--lib/gitlab/checks/lfs_check.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/checks/lfs_check.rb b/lib/gitlab/checks/lfs_check.rb
index cc6a14d2d9a..67a65d61441 100644
--- a/lib/gitlab/checks/lfs_check.rb
+++ b/lib/gitlab/checks/lfs_check.rb
@@ -7,6 +7,7 @@ module Gitlab
ERROR_MESSAGE = 'LFS objects are missing. Ensure LFS is properly set up or try a manual "git lfs push --all".'.freeze
def validate!
+ return unless Feature.enabled?(:lfs_check, default_enabled: true)
return unless project.lfs_enabled?
return if skip_lfs_integrity_check