We've started using Repo (described here: https://source.android.com/source/developing.html) to manage our set of git repositories. After doing init and sync, all the repositories have detached HEADs.
When the manifest version of a repository is a branch, I would like to automatically create a local branch tracking the remote one, for all git repositories in the manifest. Is that possible?