I have a git module called 'production' and inside a couple of submodules. When I use the following command: git clone --recursive git@git_server:production it's clonning the 'production' module with the submodules. When I cd in one of the submodule and give the following command: git branch -a I get:
* (no branch)
  master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
The .gitmodules files contains:
[submodule "blabla"]
url = git@git_server:production/blabla
path = blabla
branch = refs/heads/master
...........................................
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"?
 
     
    