restoring root branch creates new root branch that can't be deleted
I had my main branch and a child branch. I restored the parent to match the child. It created a grandchild with name prefix main_old that I can't delete because it's considered a root branch. I can't delete the child (main-1) either because it has its own child (main_old).

