gerrit/gerrit-server
Bruce Zu f6159bed86 Fix: Permission.PUSH_MERGE checking for push bypassing Gerrit
Gerrit always check Permission.PUSH_MERGE on branches
starting with 'refs/for' even for the push bypassing
Gerrit, e.g. creating a new branch using a merge with
command like:
   git push origin   <merge-sha1>:refs/heads/<new-branch-name>
As this is not for review, the `Push Merge` is expected
to exist on 'refs/heads/<new-branch-name>', not on
'refs/for/refs/heads/<new-branch-name>'.

This commit fix it to avoid user confusion when granting
access to 'refs/heads/*' doesn't allow them to push
directly any merge commits bypassing the code review.

Issue: 1072
Change-Id: Ib76d72a3d6435429b14f696f2833ca5cd847ba63
2013-09-25 09:57:05 +08:00
..
.settings Add encoding for generated-sources/prolog-java in Eclipse prefs 2013-05-07 10:43:00 +01:00
src Fix: Permission.PUSH_MERGE checking for push bypassing Gerrit 2013-09-25 09:57:05 +08:00
.gitignore Add Intellij IDEA files to ignore list 2012-05-03 13:17:43 -07:00
BUCK Render JSON results for the change table only using the index 2013-09-10 16:13:36 -07:00