#640 delete master branch on git.c.o/centos/centos.org
Closed: Fixed by bstinson. Opened by carlwgeorge.

I'm working on switching the CentOS website source repo from a master branch to a main branch, in line with Red Hat's conscious language efforts.

https://www.redhat.com/en/blog/making-open-source-more-inclusive-eradicating-problematic-language
https://www.redhat.com/en/blog/update-red-hats-conscious-language-efforts

I was able to create the main branch and set it as the default. However, I'm not able to delete the master branch. Attempting to do so results in the error message "You are not allowed to delete the master branch". I assume this is some kind of branch protection rule. Can this be adjusted to protect the main branch and allow deletion of the master branch?


Metadata Update from @zlopez:
- Issue tagged with: low-gain, low-trouble

I tired to do this but was greeted with the same message. May need to be @arrfab when he is better

Turns out we aren't actually able to delete the master branch.
See the code that we have deployed currently: https://pagure.io/pagure/pull-request/275#_3__48

And pagure's current state of development: https://pagure.io/pagure/blob/master/f/pagure/ui/repo.py#_2684

Metadata Update from @bstinson:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

Apologies, I didn't mean to close this. I'm looking into another way to delete this branch

Metadata Update from @bstinson:
- Issue status updated to: Open (was: Closed)

Metadata Update from @bstinson:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Log in to comment on this ticket.

Metadata