blob: 4c7bf22a294914232ff89d8ee6194f59b6bb1db0 [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
12 `refs/for/refs/heads/*`)
132. if you bypass code review without
Edwin Kempin8dd505c2012-01-23 10:42:41 +010014 link:access-control.html#category_push_direct['Push'] access right
Fredrik Luthander0bb123d2011-12-29 11:36:48 +010015 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
18 right on `refs/heads/*`
194. if you push an annotated tag without
Edwin Kempin8dd505c2012-01-23 10:42:41 +010020 link:access-control.html#category_push_annotated['Push Annotated Tag']
21 access right on 'refs/tags/*'
Edwin Kempind8d2deb2014-02-20 14:49:17 +0100225. if you push a signed tag without
Edwin Kempin8c0c02d2013-01-23 09:08:40 +010023 link:access-control.html#category_push_signed['Push Signed Tag']
24 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
Fredrik Luthander0bb123d2011-12-29 11:36:48 +010026 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']
29 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.
35Bypassing 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.
37refs/for/master). Details about how to push commits for code review
38are 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---------