Issue 1672: Allow refs/heads/prefix* patterns in permissions configuration
Status:  WontFix
Owner: ----
Closed:  Nov 2012
Reported by tobias.o...@sap.com, Nov 21, 2012
Our maintenance branches are called refs/heads/rel-x.y, e.g. refs/heads/rel-2.1

I would like to be able to allow direct push to all branches that start with "rel-". Changes that go into the rel branches are all cherry-picked from master, so they don't need to be code reviewed again.

When I try to configure the push permission for the reference refs/heads/rel-*, I currently (in Gerrit 2.5) get the error message

  Invalid Name: refs/heads/rel-*

Nov 21, 2012
Project Member #1 edwin.ke...@gmail.com
This is expected. For the reference you can either provide
- a full ref name (e.g. 'refs/heads/master')
- a ref namespace, with the last segment being '/*' (e.g.' refs/heads/*') or
- a regular expression (e.g. '^refs/heads/rel.*')

For non-regular expression refs you can use the '*' in any other place than the last segment. See also [1] in the Gerrit documentation.

[1] https://gerrit-review.googlesource.com/Documentation/access-control.html#_project_access_control_lists
Nov 21, 2012
Project Member #2 edwin.ke...@gmail.com
(No comment was entered for this change.)
Status: WontFix
Nov 21, 2012
#3 tobias.o...@sap.com
Thanks for pointing this out. I had only skimmed over the documentation and had not found the section you pointed to. I had looked at the table of content and searched for all occurrences of "pattern".