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: |
| 9 | 1. if you push a commit for code review to a branch for which you |
| 10 | don't have upload permissions (access right '+2 Upload permission' |
| 11 | in the link:access-control.html#category_READ['Read Access'] category) |
| 12 | 2. if you bypass code review without sufficient privileges in the |
| 13 | link:access-control.html#category_pHD['Push Branch'] category |
| 14 | 3. if you push a tag without sufficient privileges in the link:access-control.html#category_pTAG['Push Tag'] |
| 15 | category |
| 16 | |
Edwin Kempin | d1a8369 | 2011-02-09 07:51:09 +0100 | [diff] [blame^] | 17 | For new users it happens often that they accidentally try to bypass |
| 18 | code review. The push then fails with the error message 'prohibited |
| 19 | by Gerrit' because the project didn't allow to bypass code review. |
| 20 | Bypassing the code review is done by pushing directly to refs/heads/* |
| 21 | (e.g. refs/heads/master) instead of pushing to refs/for/* (e.g. |
| 22 | refs/for/master). Details about how to push commits for code review |
| 23 | are explained link:user-upload.html#push_create[here]. |
| 24 | |
Edwin Kempin | 40f31e5 | 2011-01-12 14:11:06 +0100 | [diff] [blame] | 25 | |
| 26 | GERRIT |
| 27 | ------ |
| 28 | Part of link:error-messages.html[Gerrit Error Messages] |