Bruce Zu 9fd0c50a8a Enable creating new branch and push local new commits in one step.
Direct push local commits to create a new branch is rejected,
even when user group can
 - 'Read',
 - 'Create Reference',
 - 'Push'
on 'refs/heads/*'. User have to firstly create new branch with
a commit which exists on server side, then push other local new
commits.

The reason is that Gerrit take it for granted that the commits
used to create new branch exist on server side already, so Gerrit
only check the commits are reachable or not on the server side.
According to the same reason if user group can 'Read' on 'refs/*'
or have Global Capabilities 'Administrate Server', Gerrit will
think the commits sure will be reachable for user and stop do
further checking.

So Gerrit does not work in the cases where creating new branch with
local new commits, e.g. the commits come from outer partners and need
not review, and the user group is not of Admin group and should not
be able to see every thing for some business rules reason.

Taking local new commits into account, also including the related
permission checking, now it can be finished in one step to create
new branch and push local new commits.

Bug: Issue 2441
Change-Id: I4e580e2fe0b40b8d0fbb06c5c8d1efd61127a842
2014-03-03 02:57:50 +00:00
2013-05-21 20:28:56 -07:00
2013-05-21 20:28:56 -07:00
2013-09-26 23:12:55 -07:00
2013-05-21 20:28:56 -07:00
2013-09-20 19:41:26 -07:00
2013-11-05 21:38:53 +00:00
2013-12-05 17:20:26 +09:00
2008-11-14 16:59:34 -08:00
2009-03-27 20:20:10 -07:00
2014-01-15 09:43:25 +09:00
Description
RETIRED, Gerrit as used by OpenStack
120 MiB