in src/buildstream_plugins/sources/git.py [0:0]
def _configure_submodules(self, submodules):
for submodule in submodules:
if self._ignoring_submodule(submodule.path):
continue
# Allow configuration to override the upstream location of the submodules.
submodule.url = self.submodule_overrides.get(submodule.path, submodule.url)
yield submodule