blob: bad2b3c0603e0a6440092ac75a6a1e4a60fdda9e [file] [log] [blame]
Edwin Kempin40f31e52011-01-12 14:11:06 +01001prohibited by Gerrit
2====================
3
4This is a general error message that is returned by Gerrit if a push
5is not allowed, e.g. because the pushing user has no sufficient
6privileges.
7
8In particular this error occurs:
Edwin Kempinddfc41a2011-05-06 10:32:05 +02009
Edwin Kempin40f31e52011-01-12 14:11:06 +0100101. if you push a commit for code review to a branch for which you
Fredrik Luthander0bb123d2011-12-29 11:36:48 +010011 don't have upload permissions (access right
12 link:access-control.html#category_push_review['Push'] on
13 `refs/for/refs/heads/*`)
142. if you bypass code review without
Edwin Kempin8dd505c2012-01-23 10:42:41 +010015 link:access-control.html#category_push_direct['Push'] access right
Fredrik Luthander0bb123d2011-12-29 11:36:48 +010016 on `refs/heads/*`
Edwin Kempin8dd505c2012-01-23 10:42:41 +0100173. if you push an annotated tag without
18 link:access-control.html#category_push_annotated['Push Annotated Tag']
19 access right on 'refs/tags/*'
Edwin Kempin8c0c02d2013-01-23 09:08:40 +0100204. if you push a signed tag without
21 link:access-control.html#category_push_signed['Push Signed Tag']
22 access right on 'refs/tags/*'
235. if you push a lightweight tag without the access right link:access-control.html#category_create['Create
Fredrik Luthander0bb123d2011-12-29 11:36:48 +010024 Reference'] for the reference name 'refs/tags/*'
Edwin Kempin8c0c02d2013-01-23 09:08:40 +0100256. if you push a tag with somebody else as tagger and you don't have the
Edwin Kempin6a85c212012-08-21 15:41:05 +020026 link:access-control.html#category_forge_committer['Forge Committer']
27 access right for the reference name 'refs/tags/*'
Edwin Kempin8c0c02d2013-01-23 09:08:40 +0100287. if you push to a project that is in state 'Read Only'
Edwin Kempin40f31e52011-01-12 14:11:06 +010029
David Pursehouse221d4f62012-06-08 17:38:08 +090030For new users it often happens that they accidentally try to bypass
Edwin Kempind1a83692011-02-09 07:51:09 +010031code review. The push then fails with the error message 'prohibited
32by Gerrit' because the project didn't allow to bypass code review.
33Bypassing the code review is done by pushing directly to refs/heads/*
34(e.g. refs/heads/master) instead of pushing to refs/for/* (e.g.
35refs/for/master). Details about how to push commits for code review
36are explained link:user-upload.html#push_create[here].
37
Edwin Kempin40f31e52011-01-12 14:11:06 +010038
39GERRIT
40------
41Part of link:error-messages.html[Gerrit Error Messages]