Add a default target for symbolic reference branches
Some repositories are wrongly configured and they have symbolic references (e.g. a HEAD) that points to a non-existent branch. In the general case, we still want to load these origins; Create a dangling branch for these symbolic references to point to.
Test Plan
new tox test added
Migrated from D3188 (view on Phabricator)