Protected branch on `master` causes direct pushes to master to fail on CE and EE
I was trying to do a release for 10.0.1, but I was startled to see a push to GitLab.com failed:
[2017-09-23 20:46:30 -0400] --> git push gitlab master:master
Counting objects: 6, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 782 bytes | 0 bytes/s, done.
Total 6 (delta 4), reused 0 (delta 0)
remote: GitLab: You are not allowed to push code to protected branches on this project.
To gitlab.com:gitlab-org/gitlab-ee.git
! [remote rejected] master -> master (pre-receive hook declined)
It looks like only @rspeicher and @jarka have permission to direct pushes here. If we change release managers every month, it's very likely that this would fail.
This caused me confusion, and I aborted the tag until I realized it was a fairly innocent thing.