File tree 3 files changed +1
-15
lines changed
3 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -1396,7 +1396,6 @@ def add_features(sender, **kwargs):
1396
1396
USE_SPHINX_LATEST = 'use_sphinx_latest'
1397
1397
ALLOW_DEPRECATED_WEBHOOKS = 'allow_deprecated_webhooks'
1398
1398
PIP_ALWAYS_UPGRADE = 'pip_always_upgrade'
1399
- SKIP_SUBMODULES = 'skip_submodules'
1400
1399
DONT_OVERWRITE_SPHINX_CONTEXT = 'dont_overwrite_sphinx_context'
1401
1400
MKDOCS_THEME_RTD = 'mkdocs_theme_rtd'
1402
1401
API_LARGE_DATA = 'api_large_data'
@@ -1413,7 +1412,6 @@ def add_features(sender, **kwargs):
1413
1412
(USE_SPHINX_LATEST , _ ('Use latest version of Sphinx' )),
1414
1413
(ALLOW_DEPRECATED_WEBHOOKS , _ ('Allow deprecated webhook views' )),
1415
1414
(PIP_ALWAYS_UPGRADE , _ ('Always run pip install --upgrade' )),
1416
- (SKIP_SUBMODULES , _ ('Skip git submodule checkout' )),
1417
1415
(
1418
1416
DONT_OVERWRITE_SPHINX_CONTEXT ,
1419
1417
_ (
Original file line number Diff line number Diff line change @@ -181,13 +181,6 @@ def test_skip_submodule_checkout(self):
181
181
repo .update ()
182
182
repo .checkout ('submodule' )
183
183
self .assertTrue (repo .are_submodules_available (self .dummy_conf ))
184
- fixture .get (
185
- Feature ,
186
- projects = [self .project ],
187
- feature_id = Feature .SKIP_SUBMODULES ,
188
- )
189
- self .assertTrue (self .project .has_feature (Feature .SKIP_SUBMODULES ))
190
- self .assertFalse (repo .are_submodules_available (self .dummy_conf ))
191
184
192
185
def test_use_shallow_clone (self ):
193
186
repo = self .project .vcs_repo ()
Original file line number Diff line number Diff line change @@ -74,15 +74,10 @@ def repo_exists(self):
74
74
75
75
def are_submodules_available (self , config ):
76
76
"""Test whether git submodule checkout step should be performed."""
77
- # TODO remove this after users migrate to a config file
78
- from readthedocs .projects .models import Feature
79
77
submodules_in_config = (
80
78
config .submodules .exclude != ALL or config .submodules .include
81
79
)
82
- if (
83
- self .project .has_feature (Feature .SKIP_SUBMODULES ) or
84
- not submodules_in_config
85
- ):
80
+ if not submodules_in_config :
86
81
return False
87
82
88
83
# Keep compatibility with previous projects
You can’t perform that action at this time.
0 commit comments