Handle both rename and reassignment of default branch. If it is reassigned and repository settings has a default-branch then safe-settings will reset it back.
If it is a rename of the current default branch, safe-settings will rename it back.
Any new refs that are created by the user will still remain as they would be pointing to the current default branch and cannot be deleted.
Handle both rename and reassignment of default branch. If it is reassigned and
repository
settings has adefault-branch
thensafe-settings
will reset it back.If it is a rename of the current default branch, safe-settings will rename it back.
Any new refs that are created by the user will still remain as they would be pointing to the current default branch and cannot be deleted.