title: Why is git submodule path wrong?
body: <p>I have a git repository (which I'll refer to as <code>ml</code>) located at</p>
  
  <pre><code>ssh://ml-fey/usr/projects/data/nuclear/mc/type1
  </code></pre>
  
  <p>This repository has a submodule. The <code>.gitmodules</code> file looks like this</p>
  
  <pre><code>[submodule "Appendix"]
      path = Appendix
      url = /usr/projects/data/nuclear/mc/type1/Appendix
  </code></pre>
  
  <p>I can clone the repository to a new repository (which I'll refer to as <code>XL</code>), however when I try to update the submodule I get this error</p>
  
  <pre><code>$ git submodule update
  Cloning into 'Appendix'...
  fatal: '/usr/projects/data/nuclear/mc/Appendix' does not appear to be a git repository
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  Clone of 'ssh://ml-fey/usr/projects/data/nuclear/mc/Appendix' into submodule path 'Appendix' failed
  </code></pre>
  
  <p>Notice that the directory from which it is search for the <code>Appendix</code> submodule is missing the final <code>type1</code> directory. The reason git can't update the submodule in <code>XL</code> is because <code>ssh://ml-fey/usr/projects/data/nuclear/mc/Appendix</code> doesn't exist. Where did the <code>type1</code> go?</p>
  
  <p>The <code>.gitmodules</code> file for the <code>XL</code> repository looks like:</p>
  
  <pre><code>[submodule "Appendix"]
      path = Appendix
      url = /usr/projects/data/nuclear/mc/type1/Appendix
  </code></pre>