My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3513: unable to set up permissions at folder level inside a branch
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by arunjobe...@gmail.com, Aug 10, 2015
*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version: Gerrit Code Review (2.10) 

What steps will reproduce the problem?
1. Select a repository in Gerrit
2. Go to Access settings of the above repository and Create a reference like - refs/for/refs/heads/branchA/folder123
3. make some changes 
4. push those changes to refs/for/branchA/folder123

What is the expected output? What do you see instead?
expected output: push should be successful only this folder inside branchA

instead of that, I see "unable to push changes for code review"


Please provide any additional information below.

Like is SVN, can we restrict particular group to have access to a particular folder inside a branch of a repository.

We have a team, which has access to a specific folder in a branch of a repository... but other teams have full access to that specified branch..

Access set up is working until branchA level... like refs/for/refs/heads/branchA

But how to restrict till folder level inside branchA

since, we are moving from SVN to Git/Gerrit.. how can we achieve the same requirement ?

Many thanks for your help
Aug 11, 2015
Project Member #1 edwin.ke...@gmail.com
Gerrit does not support permissions on folder level, but only on branch level.

For submit you may write a Prolog rule [1] that allows submit for a certain group only if only files under a certain path have been modified, but you must write this submit rule yourself.

[1] https://gerrit-review.googlesource.com/Documentation/prolog-cookbook.html
Labels: -Type-Bug Type-Feature
Aug 12, 2015
#2 icee...@googlemail.com
Maybe you  want to split your project int sub-projects anyway. Usage of branches and folders in git is done a bit differently from svn anyway.

Sign in to add a comment

Powered by Google Project Hosting