title: Git submodule on remote bare
body: <p>I've setup my environment so I can push to a remote bare repository.  I used these commands to set up the remote repository:</p>
  <pre><code>$ mkdir ~/website.git &amp;&amp; cd ~/website.git
  $ git init --bare
  </code></pre>
  <p>And</p>
  <pre><code>$ cat &gt; hooks/post-receive
  
  #!/bin/sh
  GIT_WORK_TREE=/var/www/website git checkout -f
  
  $ chmod +x hooks/post-receive
  </code></pre>
  <p>And on my local environment:</p>
  <pre><code>$ git remote add web ssh://website.com/home/website.git
  $ git push web +master:refs/heads/master
  </code></pre>
  <p>Now I can deploy to this remote using <code>git push web</code>, and everything works great..</p>
  <h2>The problem: Submodules</h2>
  <p>I have a few <strong>submodules</strong> on my project that aren't getting initialized/updated at the remote repository. I can't run <code>git submodule update</code> on the bare because it's bare, and I can't run it on the <code>/var/www/website</code> folder because it's just a copy of the files and not a git repo.</p>