Trying to a create a wiki with a branch causes **all** extensions to be cloned
Created by: edg2s
For example, using branch 1.40wmf21, with minimal extensions, I get:
...
Fetching submodules...
PATCHDEMO='/var/www/html' NAME='37afae8625' /var/www/html/new/submodules.sh
+ '[' -d /var/www/html/wikis/37afae8625/w/extensions/VisualEditor ']'
+ cd /var/www/html/wikis/37afae8625/w/extensions/VisualEditor
+ git submodule update --init --recursive
Submodule 'extensions/3D' (https://gerrit.wikimedia.org/r/mediawiki/extensions/3D) registered for path '../3D'
Submodule 'extensions/ActiveAbstract' (https://gerrit.wikimedia.org/r/mediawiki/extensions/ActiveAbstract) registered for path '../ActiveAbstract'
Submodule 'extensions/AdvancedSearch' (https://gerrit.wikimedia.org/r/mediawiki/extensions/AdvancedSearch) registered for path '../AdvancedSearch'
Submodule 'extensions/AntiSpoof' (https://gerrit.wikimedia.org/r/mediawiki/extensions/AntiSpoof) registered for path '../AntiSpoof'
...
Note this is every extension that exists, not just those listed in all.txt here.
It then proceeds to start cloning every repo, which obviously takes for ever.