Hi, Sven and other experts,
There are still two problems:
1, When I added some items in the ^refs/heads/tp/.*/.*, and then save
the config, there was an error message prompt:
"
An error occurred
Error 400 (Bad Request): com.google.gerrit.exceptions.InvalidNameException: Invalid Name: ^refs/heads/tp/.*/.*
Endpoint: /projects/*/access
"
But I can config the projects with the local configuration file project.config,
2, I cannot create/delete the specific user branch in the tp/${username}/* domain,
even I add the create/delete/push reference in the "^refs/heads/tp/${username}/*". when I push
a branch, it still says I don't have the permission, after I add the 'create/push/delete' permission
in the "^refs/heads/tp/.*/.*", I can push the branch, but I can push any branch in the
domain refs/heads/tp. e.g. refs/heads/tp/myname/test_branch, refs/heads/othername/test_branch.
here is my configs:
[access "^refs/heads/tp/.*/.*"]
create = group bt-topic
delete = group bt-topic
read = group bt-topic
read = block group Registered Users
push = group Administrators
push = group bt-admin
pushMerge = group Administrators
[access "^refs/heads/tp/${username}/*"]
create = group bt-topic
forgeCommitter = group bt-topic
label-Code-Review = -2..+2 group bt-topic
submit = group bt-topic
delete = group bt-topic
push = +force group bt-topic
Br,
Yingchun