summaryrefslogtreecommitdiff
path: root/lib/gitlab/checks/lfs_check.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/checks/lfs_check.rb')
-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 e42684e679a..cc6a14d2d9a 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 project.lfs_enabled?
return if skip_lfs_integrity_check
logger.log_timed(LOG_MESSAGE) do