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