title: Why does my git repo throw errors when pushing to deployment server?
body: <p>I recently set a a repo up on Beanstalk app to deploy my app.</p>
  
  <p>I have a repo and a submodule in it with the following settings.</p>
  
  <p>In .git/config I have:</p>
  
  <pre><code>[submodule "vendor/php-instagram-api/php-instagram-api"]
      path = vendor/php-instagram-api/php-instagram-api
      url = git@made-by-mark.beanstalkapp.com:/made-by-mark/everydayfolk.git
  </code></pre>
  
  <p>In my .git/.gitmodules I have:</p>
  
  <pre><code>[submodule "phpinstagram"]
      path = vendor/php-instagram-api/php-instagram-api
      url = git@made-by-mark.beanstalkapp.com:/made-by-mark/everydayfolk.git
  </code></pre>
  
  <p>Is there a conflict here? When I commit I get no errors but when I do <code>git push beanstalk master</code> in the beanstalk deployment area I get an error saying:</p>
  
  <blockquote>
    <p>Warning: Permanently added
    'made-by-mark.beanstalkapp.com,50.31.156.71' (RSA) to the list of
    known hosts. fatal: reference is not a tree:
    fc4d8cf4f05c51e71ddbc7d7b80f639c68b39405 Unable to checkout
    'fc4d8cf4f05c51e71ddbc7d7b80f639c68b39405' in submodule path
    'vendor/php-instagram-api/php-instagram-api'</p>
  </blockquote>
  
  <p>I have tried many fixes but things just aren't getting anywhere. Can anyone see what the issue may be?</p>
  
  <p>Cheers</p>