$ git remote add origin "url of my gerrit repository"
$ git pull origin refs/meta/config
I see that the Gerrit repository is a BARE: master which contains only version history and no working files.
When the code mentioned above is executed I see the message:
fatal: C:\Program Files\Git/libexec/git-core\git-pull cannot be used without a working tree.
If someone could help me to add the rules.pl to my gerrit to customize workflow it would be great. I am using Gerrit.2.9.1.
> <mailto:repo-discuss+unsub...@googlegroups.com>.
> > <mailto:repo-discuss+unsub...@googlegroups.com <javascript:>>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to repo-discuss...@googlegroups.com
> <mailto:repo-discuss+unsub...@googlegroups.com>.
On 11/19/2014 08:06 PM, Clinto Sunny wrote:
> Yeah David. I corrected that. I have used HTTP for push and pull. Now
> what I see is
>
> Counting objects: 6, done.
> Delta compression using up to 2 threads.
> Compressing objects: 100% (4/4), done.
> Writing objects: 100% (6/6), 599 bytes | 0 bytes/s, done.
> Total 6 (delta 0), reused 0 (delta 0)
> remote: Processing changes: refs: 1, done
> To http://clinto@localhost:8080/newProject
> ! [remote rejected] HEAD -> refs/meta/config (prohibited by Gerrit)
Make sure you also have the Push permission on refs/meta/config
Or try to push it for review first with:
HEAD:refs/for/refs/meta/config
If you do the latter you'll also need to make sure your user has the
permissions for any labels you have configured, and the Submit permission.
> error: failed to push some refs to
submit_rule(submit(W)) :- W = label('Any-Label-Name', ok(_)).
So that I should be able to submit all changes.
But I am not able to submit.
In the gerrit server log i see the following ERROR.
ERROR com.google.gerrit.server.project.ChangeControl : Submit rule :(user,submit_rule) for change 37 of gerrit-Test output invalid result: submit(label(All-Changes,ok(_199C961))). Reason: A label with the status All-Changes: OK must contain a user.
ERROR com.google.gerrit.server.project.ChangeControl : Submit rule :(user,submit_rule) for change 38 of gerrit-Test output invalid result: submit(label(All-Changes,ok(_C24821))). Reason: A label with the status All-Changes: OK must contain a user.