> How do I create the baseline for the developers to start pushing
> their changes? Is there any special procedure to do that?
> How would I get all this huge amount of data I already have and put
> it under Gerrit?
I did this for OpenAFS by just creating a mirror of the existing bare
repository in a suitable place on the filesystem, and then creating
the initial project and branch entries in the database as described in
the documentation.
One sticking point is that you have to manually create all of the
branches you wish to still allow pushes to through the database
interface - the Gerrit web interface only supports creating new
branches - you can't use it to add existing ones to Gerrit.
Hope that helps!
Simon.
After the setup you propose, we still get the same problem:$ git push ssh://user@gerrit:29418/project1 HEAD:refs/for/master
To push directly, I think you need to push to refs/heads/master
S.
It looks like it is going through, but it the end, it returns a lock error:git push ssh://user@gerrit:29418/project1 HEAD:refs/heads/master
! [remote rejected] HEAD -> master (lock error: /home/gerrit/repositories/project1.git/logs/refs/heads/master (Permission denied))
Gerrit's repos are supposed to be empty. Any idea where this could come from?
That's why in the next release, 2.1.2, we have the new access
control Forge Identity +2, which allows you to upload commits
that aren't you.
Unfortunately we havent released 2.1.2 yet because the performance of
the syntax highlighting is horrible when you have a lot of traffic.
We're running it internally, so its stable enough for a production
review system, but performance isn't where it should be, so I have
been refusing to mark a release.
So to get the Forge Identity +2 access control you'll have to
download the latest source directly from Git and build the WAR
yourself. Or, you could take the 2.1.1.1 sources from Git and
comment out the validateCommitter check within Receive.java, then
build a custom WAR for your use.