distgit/pagure: Do not allow packagers to create the 'master' branch if it does not exist in PDC

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-07-23 13:01:03 +02:00
parent 7c51566c36
commit 5aa15e44e3

View file

@ -73,8 +73,9 @@ RCM_BRANCHES = ['refs/heads/f[0-9]+', 'refs/tags/.*', 'refs/heads/master', 'refs
# Pushing to c* stuff is never allowed
BLACKLIST_RES = ['refs/heads/c[0-9]+.*']
# Pushing to (f|epel|el|olpc)(num+) that is not previously approved
# (supported branches) is not allowed.
UNSPECIFIED_BLACKLIST_RES = ['refs/heads/f[0-9]+',
# (supported branches, ie: configured and active in PDC) is not allowed.
UNSPECIFIED_BLACKLIST_RES = ['master',
'refs/heads/f[0-9]+',
'refs/heads/epel[0-9]+',
'refs/heads/el[0-9]+',
'refs/heads/olpc[0-9]+']