title: Error on git submodule update --init
body: <p>I have a main repository with several <code>git submodule</code>s.</p>
  
  <p>Lately I came about a new error which I cannot resolve:</p>
  
  <pre><code>fatal: Could not switch to '~/git': No such file or directory
  Clone of '~/git/MyModule_A.git' into submodule path '.modman/MyModule_A' failed
  </code></pre>
  
  <h3>What I'm doing</h3>
  
  <p>First, I clone the main repo as usual: <code>git clone /path/to/the/bare/repo.git src</code></p>
  
  <p>Then, I run <code>git submodule update --init</code> which does correctly register all submodules and they are added to the <code>.git/config</code>.</p>
  
  <pre><code>Submodule '.modman/MyModule_A' (~/git/MyModule_A.git) registered for path '.modman/MyModule_A'
  Submodule '.modman/MyModule_B' (~/git/MyModule_B.git) registered for path '.modman/MyModule_B'
  Submodule '.modman/MyModule_C' (~/git/MyModule_C.git) registered for path '.modman/MyModule_C'
  fatal: Could not switch to '~/git': No such file or directory
  Clone of '~/git/MyModule_A.git' into submodule path '.modman/MyModule_A' failed
  </code></pre>
  
  <h3>What I have tried so far</h3>
  
  <ul>
  <li>Removing <code>MyModule_A</code> submodule from the <code>.gitmodules</code> but then the error continues in <code>MyModule_B</code>, <code>MyModule_B</code> and so on.</li>
  <li>Manually cloning <code>~/git/MyModule_A.git</code> into another folder outside the repo which is working fine.</li>
  <li>Checking file permissions which seem to be correct.</li>
  <li>Checking entries in <code>.gitmodules</code> for wrong paths, urls or any syntax problems which is not the case. </li>
  </ul>