blob: 40e390adc500e4641d6bd2910f8f7e7612d612b6 [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= branch ... not found
Edwin Kempin0fde32f2011-01-10 13:12:53 +01002
3With this error message Gerrit rejects to push a commit for code
4review if the specified target branch does not exist.
5
6To push a change for code review the commit has to be pushed to the
7project's magical `refs/for/'branch'` ref (for details have a look at
8link:user-upload.html#push_create[Create Changes]).
David Pursehouse221d4f62012-06-08 17:38:08 +09009If you specify a non-existing branch in the `refs/for/'branch'` ref
10the push fails with the error message 'branch ... not found'.
Edwin Kempin0fde32f2011-01-10 13:12:53 +010011
12To fix this problem verify
Edwin Kempinddfc41a2011-05-06 10:32:05 +020013
Edwin Kempin0fde32f2011-01-10 13:12:53 +010014* that the branch name in the push specification is typed correctly
15 (case sensitive) and
David Pursehousea1d633b2014-05-02 17:21:02 +090016* that the branch really exists for this project (in the Gerrit Web UI
Edwin Kempin5819c952012-12-12 13:07:05 +010017 go to 'Projects' > 'List' and browse your project, then click on
Edwin Kempin0fde32f2011-01-10 13:12:53 +010018 'Branches' to see all existing branches).
19
20If it was your intention to create a new branch you can either
Edwin Kempinddfc41a2011-05-06 10:32:05 +020021
Edwin Kempin0fde32f2011-01-10 13:12:53 +010022* bypass code review on push as explained link:user-upload.html#bypass_review[here] or
David Pursehousea1d633b2014-05-02 17:21:02 +090023* create the new branch in the Gerrit Web UI before pushing (go to
Edwin Kempin5819c952012-12-12 13:07:05 +010024 'Projects' > 'List' and browse your project, in the 'Branches'
Edwin Kempin0fde32f2011-01-10 13:12:53 +010025 tab you can then create a new branch).
Edwin Kempinddfc41a2011-05-06 10:32:05 +020026
Fredrik Luthander0bb123d2011-12-29 11:36:48 +010027Please note that you need to be granted the
28link:access-control.html#category_create['Create reference'] access to create new branches.
Edwin Kempin0fde32f2011-01-10 13:12:53 +010029
30
31GERRIT
32------
33Part of link:error-messages.html[Gerrit Error Messages]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070034
35SEARCHBOX
36---------