Git Submodules with Detached HEAD

This week we at Sprout Venture migrated our largest project to git. Without going into detail about our process we ran into a problem with our superproject’s submodules initialized with detached HEADs; regardless if they’re added with the branch set. The .gitmodules file would properly show the branch, e.g. [code language=”text”] [submodule “wordpress”] path = […]