title: git clone --recursive - submodules on no branch
body: <p>I have a git module called 'production' and inside a couple of submodules. When I use the following command: <code>git clone --recursive git@git_server:production</code> it's clonning the 'production' module with the submodules. When I <code>cd</code> in one of the submodule and give the following command: <code>git branch -a</code> I get:</p>
  
  <pre><code>* (no branch)
    master
    remotes/origin/HEAD -&gt; origin/master
    remotes/origin/master
  </code></pre>
  
  <p>The <code>.gitmodules</code> files contains:</p>
  
  <pre><code>[submodule "blabla"]
  url = git@git_server:production/blabla
  path = blabla
  branch = refs/heads/master
  ...........................................
  </code></pre>
  
  <p>The question is: Why if I clone recursive the submodules are on the branch "(no branch)" and if I clone only the respective submodule is cloning directly on branch "master"? Is there any way to change the configuration that when I clone recursive to clone directly all the submodule in branch "master"?</p>