Checkout without submodules #779
-
When I set recursiveSubmodules = false in task options, it checks them out on server anyway. I need the submodules to be omitted, they are used only for development. These are such things like .ddev, frontend mockup, etc. I know they can be excluded later in rsyncExcludes, but it takes much time to checkout all these unnecessary subrepos, and there's complications with some private repo permissions. How to make Surf just omit them? $deployment
->addApplication($application)
->onInitialize(function () use ($deployment, $application) {
$deployment->getWorkflow()
->setTaskOptions(\TYPO3\Surf\Task\Package\GitTask::class, [
'recursiveSubmodules' => false,
]) Also tried active = false in .gitmodules, but it's not respected. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The flag |
Beta Was this translation helpful? Give feedback.
The flag
recursiveSubmodules
only disables the submodules of the submodules, so the second level so to speak but NOT the first level. Disabling the checkout of the first level submodules is currently not supported. Would you sponsor this feature?