After import, missing default branch, and only multiple heads
If for some reason, the imported repository has multiple heads on a branch, the corresponding GitLab branch, e.g., branch/default
, branch/stable
etc does not get created.
In the worst case, we end up with only GitLab branches for the multiple heads wild/HGSHA
and no branch/default
. In this situation, GitLab will have chosen one of these wild branches as its default branch, forbidding to remove it. Hence no push can be done to resolve the multiple heads condition (by merging, pruning, closing), unless one defines a regular branch as default on the GitLab side… with no regular branch, we're blocked.
I've seen it happen in the wild, presumably because obsmarkers hadn't been received from Bitbucket.