Let's assume that we've got some git submodule in directory "submod". Now I'm doing such commands:
# git submodule update --init submod
# cd submod
# git branch
* (no branch)
master
If submodule located in directory "submod" has many branches - how do I find which of them should I checkout? I know that git remember only git hash of submodule and not branch name - so how to find branch name?