change access to project not by Web UI

25 views
Skip to first unread message

Vadim Dvorkin

unread,
Apr 20, 2015, 11:23:18 AM4/20/15
to repo-d...@googlegroups.com
Dear Gerrit experts,

Would you please suggest how change access to project not by Web UI? Like by ssh command or push to refs/meta/config. My final goal is to create new branch with specific permissions.

Thanks in advance,
--Vadim

Saša Živkov

unread,
Apr 20, 2015, 11:31:26 AM4/20/15
to Vadim Dvorkin, repo-d...@googlegroups.com
On Mon, Apr 20, 2015 at 5:23 PM, Vadim Dvorkin <vadim....@gmail.com> wrote:
Dear Gerrit experts,

Would you please suggest how change access to project not by Web UI? Like by ssh command or push to refs/meta/config.
 
Push to refs/meta/config is what you need.
Something like:
$ git fetch origin refs/meta/config:config
$ git checkout config
... edit the project.config and set the permissions you need...
$ git add project.config
$ git commit -m "Changed permissions ...."
$ git push origin HEAD:refs/meta/config

Note that the last step will only work if you already (before this change) have
the permission to push to the refs/meta/config branch.

 
My final goal is to create new branch with specific permissions.

Thanks in advance,
--Vadim

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

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vadim Dvorkin

unread,
May 5, 2015, 3:19:35 AM5/5/15
to repo-d...@googlegroups.com, vadim....@gmail.com
Thanks a lot. I use this model.
--Vadim
Reply all
Reply to author
Forward
0 new messages