title: Capistrano Submodule Init and Update Task
body: <p>I'm using Capistrano (as part of <a href="https://github.com/roots/bedrock" rel="nofollow noreferrer">Bedrock</a>) to deploy Wordpress.</p>
  
  <p>I'm also using Composer to manage php dependencies and my WordPress plugins, and I have my theme managed by git as a submodule.</p>
  
  <p>I've got everything setup and I've successfully deployed WordPress to my remote server.</p>
  
  <p>The problem is I'm managing my custom theme with git submodules. I can't find a way to init and update the submodule during the default deployment, or as a separate task. I'd prefer to have it as a separate task as I don't change the underlining project files too frequently.</p>
  
  <ol>
  <li><p>I found <a href="https://gist.github.com/mbbx6spp/154482" rel="nofollow noreferrer">this gist</a> that creates a task to do the same but its using an older version of Capistrano.</p></li>
  <li><p>I tried <a href="https://stackoverflow.com/questions/22819265/deploying-a-git-submodule-with-capistrano-3">this method</a> but it fails when trying to create the release symlinks.</p></li>
  <li><p>I tried enabling submodules with <code>set :git_enable_submodules, 1</code> in my <code>deploy.rb</code> file but that seems to be missing from Capistrano V3.x.</p></li>
  <li><p>I <a href="https://stackoverflow.com/questions/19403138/capistrano-v3-deploy-git-repository-and-its-submodules">found this thread</a> where the author of Capistrano explains why submodule support was removed and another commenter posted <a href="https://gist.github.com/bhaberer/8835805" rel="nofollow noreferrer">this gist</a>, which is giving me this error <code>Tasks: TOP =&gt; git:create_release =&gt; git:update =&gt; git:clone</code>.</p></li>
  </ol>
  
  <p>What are other people doing to enable simple deployments with Capistrano that include git submodules? </p>