Skip to content

Commit 6767b16

Browse files
authored
Merge pull request #5406 from stsewd/remove-submodules-flag
Remove skip submodules flag
2 parents 9601195 + 456a70b commit 6767b16

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

readthedocs/projects/models.py

-2
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,6 @@ def add_features(sender, **kwargs):
13961396
USE_SPHINX_LATEST = 'use_sphinx_latest'
13971397
ALLOW_DEPRECATED_WEBHOOKS = 'allow_deprecated_webhooks'
13981398
PIP_ALWAYS_UPGRADE = 'pip_always_upgrade'
1399-
SKIP_SUBMODULES = 'skip_submodules'
14001399
DONT_OVERWRITE_SPHINX_CONTEXT = 'dont_overwrite_sphinx_context'
14011400
MKDOCS_THEME_RTD = 'mkdocs_theme_rtd'
14021401
API_LARGE_DATA = 'api_large_data'
@@ -1413,7 +1412,6 @@ def add_features(sender, **kwargs):
14131412
(USE_SPHINX_LATEST, _('Use latest version of Sphinx')),
14141413
(ALLOW_DEPRECATED_WEBHOOKS, _('Allow deprecated webhook views')),
14151414
(PIP_ALWAYS_UPGRADE, _('Always run pip install --upgrade')),
1416-
(SKIP_SUBMODULES, _('Skip git submodule checkout')),
14171415
(
14181416
DONT_OVERWRITE_SPHINX_CONTEXT,
14191417
_(

readthedocs/rtd_tests/tests/test_backend.py

-7
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,6 @@ def test_skip_submodule_checkout(self):
181181
repo.update()
182182
repo.checkout('submodule')
183183
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))
191184

192185
def test_use_shallow_clone(self):
193186
repo = self.project.vcs_repo()

readthedocs/vcs_support/backends/git.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,10 @@ def repo_exists(self):
7474

7575
def are_submodules_available(self, config):
7676
"""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
7977
submodules_in_config = (
8078
config.submodules.exclude != ALL or config.submodules.include
8179
)
82-
if (
83-
self.project.has_feature(Feature.SKIP_SUBMODULES) or
84-
not submodules_in_config
85-
):
80+
if not submodules_in_config:
8681
return False
8782

8883
# Keep compatibility with previous projects

0 commit comments

Comments
 (0)