Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = One or more refs/for/ names blocks change upload |
Edwin Kempin | 41f4ae7 | 2011-01-27 08:03:25 +0100 | [diff] [blame] | 2 | |
| 3 | With this error message Gerrit rejects to push a commit for code |
| 4 | review if the remote git repository has a branch under the |
| 5 | 'refs/for/' namespace. |
| 6 | |
| 7 | Gerrit uses the 'refs/for/' namespace for magical refs that represent |
| 8 | the review queues for branches in the git repository hosted by |
| 9 | Gerrit. If, for a project, a real branch is created under the |
| 10 | 'refs/for' namespace this conflicts with the namespace reserved for |
| 11 | the Gerrit review queues and Gerrit can't accept further pushes for |
| 12 | code review. |
| 13 | |
| 14 | To solve this problem all real branches that exist under the |
| 15 | 'refs/for/' namespace have to be deleted or renamed in the remote git |
| 16 | repository. |
| 17 | |
| 18 | To see which branches exist under the 'refs/for/' namespace a Gerrit |
| 19 | administrator can run the following command: |
| 20 | |
| 21 | ---- |
| 22 | $ git for-each-ref refs/for |
| 23 | ---- |
| 24 | |
| 25 | If all these branches should be deleted it can be done with the |
| 26 | following command: |
| 27 | |
| 28 | ---- |
| 29 | $ for n in $(git for-each-ref --format='%(refname)' refs/for); |
| 30 | do git update-ref -d $n; done |
| 31 | ---- |
| 32 | |
| 33 | Branches under the 'refs/for/' namespace can be created by users that |
| 34 | bypass Gerrit and push directly to the git repository itself (not |
| 35 | using the Gerrit server's SSH port). |
| 36 | |
| 37 | |
| 38 | GERRIT |
| 39 | ------ |
| 40 | Part of link:error-messages.html[Gerrit Error Messages] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 41 | |
| 42 | SEARCHBOX |
| 43 | --------- |