Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = prohibited by Gerrit |
Edwin Kempin | 40f31e5 | 2011-01-12 14:11:06 +0100 | [diff] [blame] | 2 | |
| 3 | This is a general error message that is returned by Gerrit if a push |
| 4 | is not allowed, e.g. because the pushing user has no sufficient |
| 5 | privileges. |
| 6 | |
| 7 | In particular this error occurs: |
Edwin Kempin | ddfc41a | 2011-05-06 10:32:05 +0200 | [diff] [blame] | 8 | |
Edwin Kempin | 40f31e5 | 2011-01-12 14:11:06 +0100 | [diff] [blame] | 9 | 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] | 10 | don't have upload permissions (access right |
| 11 | link:access-control.html#category_push_review['Push'] on |
Jonathan Nieder | 5758f18 | 2015-03-30 11:28:55 -0700 | [diff] [blame] | 12 | `+refs/for/refs/heads/*+`) |
Fredrik Luthander | 0bb123d | 2011-12-29 11:36:48 +0100 | [diff] [blame] | 13 | 2. if you bypass code review without |
Edwin Kempin | 8dd505c | 2012-01-23 10:42:41 +0100 | [diff] [blame] | 14 | link:access-control.html#category_push_direct['Push'] access right |
Jonathan Nieder | 5758f18 | 2015-03-30 11:28:55 -0700 | [diff] [blame] | 15 | on `+refs/heads/*+` |
Edwin Kempin | d8d2deb | 2014-02-20 14:49:17 +0100 | [diff] [blame] | 16 | 3. if you bypass code review pushing to a non-existing branch without |
| 17 | link:access-control.html#category_create['Create Reference'] access |
Jonathan Nieder | 5758f18 | 2015-03-30 11:28:55 -0700 | [diff] [blame] | 18 | right on `+refs/heads/*+` |
Edwin Kempin | d8d2deb | 2014-02-20 14:49:17 +0100 | [diff] [blame] | 19 | 4. if you push an annotated tag without |
Edwin Kempin | 62c1568 | 2016-09-05 14:32:38 +0200 | [diff] [blame] | 20 | link:access-control.html#category_create_annotated['Create Annotated Tag'] |
Jonathan Nieder | 5758f18 | 2015-03-30 11:28:55 -0700 | [diff] [blame] | 21 | access right on `+refs/tags/*+` |
Edwin Kempin | d8d2deb | 2014-02-20 14:49:17 +0100 | [diff] [blame] | 22 | 5. if you push a signed tag without |
Edwin Kempin | 62c1568 | 2016-09-05 14:32:38 +0200 | [diff] [blame] | 23 | link:access-control.html#category_create_signed['Create Signed Tag'] |
Jonathan Nieder | 5758f18 | 2015-03-30 11:28:55 -0700 | [diff] [blame] | 24 | access right on `+refs/tags/*+` |
Edwin Kempin | d8d2deb | 2014-02-20 14:49:17 +0100 | [diff] [blame] | 25 | 6. if you push a lightweight tag without the access right link:access-control.html#category_create['Create |
Jonathan Nieder | 5758f18 | 2015-03-30 11:28:55 -0700 | [diff] [blame] | 26 | Reference'] for the reference name `+refs/tags/*+` |
Edwin Kempin | d8d2deb | 2014-02-20 14:49:17 +0100 | [diff] [blame] | 27 | 7. if you push a tag with somebody else as tagger and you don't have the |
Edwin Kempin | 6a85c21 | 2012-08-21 15:41:05 +0200 | [diff] [blame] | 28 | link:access-control.html#category_forge_committer['Forge Committer'] |
Jonathan Nieder | 5758f18 | 2015-03-30 11:28:55 -0700 | [diff] [blame] | 29 | access right for the reference name `+refs/tags/*+` |
Edwin Kempin | d8d2deb | 2014-02-20 14:49:17 +0100 | [diff] [blame] | 30 | 8. if you push to a project that is in state 'Read Only' |
Edwin Kempin | 40f31e5 | 2011-01-12 14:11:06 +0100 | [diff] [blame] | 31 | |
David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 32 | For new users it often happens that they accidentally try to bypass |
Edwin Kempin | d1a8369 | 2011-02-09 07:51:09 +0100 | [diff] [blame] | 33 | code review. The push then fails with the error message 'prohibited |
| 34 | by Gerrit' because the project didn't allow to bypass code review. |
Jonathan Nieder | 5758f18 | 2015-03-30 11:28:55 -0700 | [diff] [blame] | 35 | Bypassing the code review is done by pushing directly to `+refs/heads/*+` |
| 36 | (e.g. `refs/heads/master`) instead of pushing to `+refs/for/*+` (e.g. |
| 37 | `refs/for/master`). Details about how to push commits for code review |
Edwin Kempin | d1a8369 | 2011-02-09 07:51:09 +0100 | [diff] [blame] | 38 | are explained link:user-upload.html#push_create[here]. |
| 39 | |
Edwin Kempin | 40f31e5 | 2011-01-12 14:11:06 +0100 | [diff] [blame] | 40 | |
| 41 | GERRIT |
| 42 | ------ |
| 43 | Part of link:error-messages.html[Gerrit Error Messages] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 44 | |
| 45 | SEARCHBOX |
| 46 | --------- |