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