Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = branch ... not found |
Edwin Kempin | 0fde32f | 2011-01-10 13:12:53 +0100 | [diff] [blame] | 2 | |
| 3 | With this error message Gerrit rejects to push a commit for code |
| 4 | review if the specified target branch does not exist. |
| 5 | |
| 6 | To push a change for code review the commit has to be pushed to the |
| 7 | project's magical `refs/for/'branch'` ref (for details have a look at |
| 8 | link:user-upload.html#push_create[Create Changes]). |
David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 9 | If you specify a non-existing branch in the `refs/for/'branch'` ref |
| 10 | the push fails with the error message 'branch ... not found'. |
Edwin Kempin | 0fde32f | 2011-01-10 13:12:53 +0100 | [diff] [blame] | 11 | |
| 12 | To fix this problem verify |
Edwin Kempin | ddfc41a | 2011-05-06 10:32:05 +0200 | [diff] [blame] | 13 | |
Edwin Kempin | 0fde32f | 2011-01-10 13:12:53 +0100 | [diff] [blame] | 14 | * that the branch name in the push specification is typed correctly |
| 15 | (case sensitive) and |
David Pursehouse | a1d633b | 2014-05-02 17:21:02 +0900 | [diff] [blame] | 16 | * that the branch really exists for this project (in the Gerrit Web UI |
Edwin Kempin | 5819c95 | 2012-12-12 13:07:05 +0100 | [diff] [blame] | 17 | go to 'Projects' > 'List' and browse your project, then click on |
Edwin Kempin | 0fde32f | 2011-01-10 13:12:53 +0100 | [diff] [blame] | 18 | 'Branches' to see all existing branches). |
| 19 | |
| 20 | If it was your intention to create a new branch you can either |
Edwin Kempin | ddfc41a | 2011-05-06 10:32:05 +0200 | [diff] [blame] | 21 | |
Edwin Kempin | 0fde32f | 2011-01-10 13:12:53 +0100 | [diff] [blame] | 22 | * bypass code review on push as explained link:user-upload.html#bypass_review[here] or |
David Pursehouse | a1d633b | 2014-05-02 17:21:02 +0900 | [diff] [blame] | 23 | * create the new branch in the Gerrit Web UI before pushing (go to |
Edwin Kempin | 5819c95 | 2012-12-12 13:07:05 +0100 | [diff] [blame] | 24 | 'Projects' > 'List' and browse your project, in the 'Branches' |
Edwin Kempin | 0fde32f | 2011-01-10 13:12:53 +0100 | [diff] [blame] | 25 | tab you can then create a new branch). |
Edwin Kempin | ddfc41a | 2011-05-06 10:32:05 +0200 | [diff] [blame] | 26 | |
Fredrik Luthander | 0bb123d | 2011-12-29 11:36:48 +0100 | [diff] [blame] | 27 | Please note that you need to be granted the |
| 28 | link:access-control.html#category_create['Create reference'] access to create new branches. |
Edwin Kempin | 0fde32f | 2011-01-10 13:12:53 +0100 | [diff] [blame] | 29 | |
| 30 | |
| 31 | GERRIT |
| 32 | ------ |
| 33 | Part of link:error-messages.html[Gerrit Error Messages] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 34 | |
| 35 | SEARCHBOX |
| 36 | --------- |