Re: Where located Rights for project?

81 views
Skip to first unread message

Saša Živkov

unread,
Aug 10, 2012, 5:17:08 AM8/10/12
to a1exan, repo-d...@googlegroups.com
On Fri, Aug 10, 2012 at 9:15 AM, a1exan <ashl...@mirantis.com> wrote:
> Hi.
>
> What used to store permissions for groups on branch (ref/... etc )?
They are stored in the refs/meta/config branch.

> I have
> not found tables in database for it.
They don't exist any more since Gerrit 2.2.x release when this data
was moved to Git repository (refs/meta/config branch).

> It is necessary to automatically add groups and projects by script.
Use:
ssh -p 29418 you@your-gerrit-server gerrit --help

to find all available SSH commands.
What you need are "create-group" and "create-project" commands.

Use:
ssh -p 29418 you@your-gerrit-server gerrit create-group --help

to get help about the command.

Saša
>
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en

Saša Živkov

unread,
Aug 10, 2012, 7:10:07 AM8/10/12
to a1exan, repo-d...@googlegroups.com
On Fri, Aug 10, 2012 at 1:02 PM, a1exan <ashl...@mirantis.com> wrote:
> And i need automatically change permissions on existing projects and group.

The permissions are stored in the project.config file in the
refs/meta/config branch.
You may fetch that branch into your local Git repository, edit the
project.config, commit
and push back to the refs/meta/config branch. To do that you need
"Push" permission
on the "refs/meta/config".
Reply all
Reply to author
Forward
0 new messages