now you can disallow creation of new refs if you like
see doc/3 for details (look for "separating delete and rewind rights" ---- and for gerrit, this is one more thing it can do that we can too ;-) [the original text was somewhat misleading. We mean "prevent someone from creating a branch that they have permissions to push". That is what is now possible, where it was not possible before.]
This commit is contained in:
parent
18267706db
commit
6d32e4e920
4 changed files with 38 additions and 5 deletions
|
@ -82,6 +82,8 @@ push @allowed_refs, @ { $repos{$ENV{GL_REPO}}{'@all'} || [] };
|
|||
# been specified
|
||||
|
||||
my @refs = ($ref); # the first ref to check is the real one
|
||||
# if a new ref is being created, add a special ref to record that
|
||||
push @refs, 'refs/heads/CREATE_REF' if $oldsha eq '0' x 40;
|
||||
# because making it work screws up efficiency like no tomorrow...
|
||||
if (exists $repos{$ENV{GL_REPO}}{NAME_LIMITS}) {
|
||||
# this is special to git -- the hash of an empty tree
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue