Support preparing workareas with submodules tracking the `.` branch
For submodules, Git supports tracking a branch of the submodule (used when doing git submodule --update --remote
). The special value of .
means that the branch tracked should match the branch of the parent repository.