Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
455c4f7c
Commit
455c4f7c
authored
Jul 15, 2021
by
Stan Hu
Committed by
Igor Drozdov
Jul 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scope lfs_check feature flag by project
parent
baf5363d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/checks/lfs_check.rb
lib/gitlab/checks/lfs_check.rb
+2
-2
No files found.
lib/gitlab/checks/lfs_check.rb
View file @
455c4f7c
...
...
@@ -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 integri
f
y check on some envs
# This feature flag is used for disabling integri
t
y 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?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment