Perform magic needed to enable the "Prevent creating new branches by git push" hook for all package repositories on src.fedoraproject.org.
Newer pagure versions support a hook which prevent the creation of random (undeletable) git branches by git push. This was discussed in a thread on the devel list: https://firstname.lastname@example.org/thread/3BDW5DGSKY7NHIL27VA2NH33A3ESEL2E/
There was some general agreement that it would be a good thing to enable this for every repository and let maintainers who really do wish to create branches by pushing them disable the hook manually. Since there is no API endpoint for enabling this hook, it would have to be done by some internal magic. (I am assuming this magic is actually possible; I do not know the internals.)
If this needs to go through FESCo first, I understand.
Not much, really; all existing repos won't get this unless the maintainers go in and turn it on. I guess the default for new repositories would be something to discuss in a separate ticket.
Note: please make it disabled by default for forks.
Metadata Update from @pingou:
- Issue tagged with: src.fp.o
Metadata Update from @bowlofeggs:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
to comment on this ticket.