Edwin Kempin | 40f31e5 | 2011-01-12 14:11:06 +0100 | [diff] [blame] | 1 | prohibited by Gerrit |
| 2 | ==================== |
| 3 | |
| 4 | This is a general error message that is returned by Gerrit if a push |
| 5 | is not allowed, e.g. because the pushing user has no sufficient |
| 6 | privileges. |
| 7 | |
| 8 | In particular this error occurs: |
Edwin Kempin | ddfc41a | 2011-05-06 10:32:05 +0200 | [diff] [blame] | 9 | |
Edwin Kempin | 40f31e5 | 2011-01-12 14:11:06 +0100 | [diff] [blame] | 10 | 1. if you push a commit for code review to a branch for which you |
Fredrik Luthander | 0bb123d | 2011-12-29 11:36:48 +0100 | [diff] [blame] | 11 | don't have upload permissions (access right |
| 12 | link:access-control.html#category_push_review['Push'] on |
| 13 | `refs/for/refs/heads/*`) |
| 14 | 2. if you bypass code review without |
Edwin Kempin | 8dd505c | 2012-01-23 10:42:41 +0100 | [diff] [blame] | 15 | link:access-control.html#category_push_direct['Push'] access right |
Fredrik Luthander | 0bb123d | 2011-12-29 11:36:48 +0100 | [diff] [blame] | 16 | on `refs/heads/*` |
Edwin Kempin | 8dd505c | 2012-01-23 10:42:41 +0100 | [diff] [blame] | 17 | 3. if you push an annotated tag without |
| 18 | link:access-control.html#category_push_annotated['Push Annotated Tag'] |
| 19 | access right on 'refs/tags/*' |
Fredrik Luthander | 0bb123d | 2011-12-29 11:36:48 +0100 | [diff] [blame] | 20 | 4. if you push a lightweight tag without the access right link:access-control.html#category_create['Create |
| 21 | Reference'] for the reference name 'refs/tags/*' |
Edwin Kempin | 40f31e5 | 2011-01-12 14:11:06 +0100 | [diff] [blame] | 22 | |
David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 23 | For new users it often happens that they accidentally try to bypass |
Edwin Kempin | d1a8369 | 2011-02-09 07:51:09 +0100 | [diff] [blame] | 24 | code review. The push then fails with the error message 'prohibited |
| 25 | by Gerrit' because the project didn't allow to bypass code review. |
| 26 | Bypassing the code review is done by pushing directly to refs/heads/* |
| 27 | (e.g. refs/heads/master) instead of pushing to refs/for/* (e.g. |
| 28 | refs/for/master). Details about how to push commits for code review |
| 29 | are explained link:user-upload.html#push_create[here]. |
| 30 | |
Edwin Kempin | 40f31e5 | 2011-01-12 14:11:06 +0100 | [diff] [blame] | 31 | |
| 32 | GERRIT |
| 33 | ------ |
| 34 | Part of link:error-messages.html[Gerrit Error Messages] |