I have a submodule which I wish to be on head. Whenever I
git submodule update --recursive
on the main repo, I get this output:
Submodule path 'my_submodule': checked out '0076552d05a0eed244c7bca8aas224086e65a'
and then with git branch in the submodule:
* (HEAD detached at 0076552)
master
This is definitely not the behavour I want, and it doesn't happen with other submodules I have - how can I fix this?