blob: 3e5f23b55a89601642e1e5d1acb48550b495ed9a [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= prohibited by Gerrit
Edwin Kempin40f31e52011-01-12 14:11:06 +01002
3This is a general error message that is returned by Gerrit if a push
4is not allowed, e.g. because the pushing user has no sufficient
5privileges.
6
7In particular this error occurs:
Edwin Kempinddfc41a2011-05-06 10:32:05 +02008
Edwin Kempin40f31e52011-01-12 14:11:06 +010091. if you push a commit for code review to a branch for which you
Fredrik Luthander0bb123d2011-12-29 11:36:48 +010010 don't have upload permissions (access right
11 link:access-control.html#category_push_review['Push'] on
Jonathan Nieder5758f182015-03-30 11:28:55 -070012 `+refs/for/refs/heads/*+`)
Fredrik Luthander0bb123d2011-12-29 11:36:48 +0100132. if you bypass code review without
Edwin Kempin8dd505c2012-01-23 10:42:41 +010014 link:access-control.html#category_push_direct['Push'] access right
Jonathan Nieder5758f182015-03-30 11:28:55 -070015 on `+refs/heads/*+`
Edwin Kempind8d2deb2014-02-20 14:49:17 +0100163. if you bypass code review pushing to a non-existing branch without
17 link:access-control.html#category_create['Create Reference'] access
Jonathan Nieder5758f182015-03-30 11:28:55 -070018 right on `+refs/heads/*+`
Edwin Kempind8d2deb2014-02-20 14:49:17 +0100194. if you push an annotated tag without
Edwin Kempin62c15682016-09-05 14:32:38 +020020 link:access-control.html#category_create_annotated['Create Annotated Tag']
Jonathan Nieder5758f182015-03-30 11:28:55 -070021 access right on `+refs/tags/*+`
Edwin Kempind8d2deb2014-02-20 14:49:17 +0100225. if you push a signed tag without
Edwin Kempin62c15682016-09-05 14:32:38 +020023 link:access-control.html#category_create_signed['Create Signed Tag']
Jonathan Nieder5758f182015-03-30 11:28:55 -070024 access right on `+refs/tags/*+`
Edwin Kempind8d2deb2014-02-20 14:49:17 +0100256. if you push a lightweight tag without the access right link:access-control.html#category_create['Create
Jonathan Nieder5758f182015-03-30 11:28:55 -070026 Reference'] for the reference name `+refs/tags/*+`
Edwin Kempind8d2deb2014-02-20 14:49:17 +0100277. if you push a tag with somebody else as tagger and you don't have the
Edwin Kempin6a85c212012-08-21 15:41:05 +020028 link:access-control.html#category_forge_committer['Forge Committer']
Jonathan Nieder5758f182015-03-30 11:28:55 -070029 access right for the reference name `+refs/tags/*+`
Edwin Kempind8d2deb2014-02-20 14:49:17 +0100308. if you push to a project that is in state 'Read Only'
Edwin Kempin40f31e52011-01-12 14:11:06 +010031
David Pursehouse221d4f62012-06-08 17:38:08 +090032For new users it often happens that they accidentally try to bypass
Edwin Kempind1a83692011-02-09 07:51:09 +010033code review. The push then fails with the error message 'prohibited
34by Gerrit' because the project didn't allow to bypass code review.
Jonathan Nieder5758f182015-03-30 11:28:55 -070035Bypassing 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 Kempind1a83692011-02-09 07:51:09 +010038are explained link:user-upload.html#push_create[here].
39
Edwin Kempin40f31e52011-01-12 14:11:06 +010040
41GERRIT
42------
43Part of link:error-messages.html[Gerrit Error Messages]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070044
45SEARCHBOX
46---------