Re: Maintaining an upstream repository with gerrit

197 views
Skip to first unread message

Anthony Wong

unread,
Nov 19, 2012, 12:16:04 PM11/19/12
to repo-d...@googlegroups.com, rsch...@bluepeach.com
Hi Rich--
 
I'm not an expert at this, but I'm running gerrit alongside gitolite.  They're sharing the git repositories (basePath is pointing to the same location).  You may need to manually create the refs/meta/config branch (and project.config file).
 
Our IT guy worries that if both gitolite and gerrit write to a repo at the same time there may be a race condition, but we're blocking writes in gitolite to the branch that is being reviewed in gerrit.
 
--Anthony

On Wednesday, November 14, 2012 6:20:42 AM UTC-8, Rich Schmitt wrote:
My apologies if this is a duplicate post.

I want to use gerrit as a review platform for an existing repository.  I'm new to gerrit and evaluating it for use in our workflow.  We have existing repositories hosted by gitolite which we'd like to leave as is.  I believe what I'd like is that the refs/HEADS either be the upstream repository or stay synched with the upstream repository.

I thought replication may help here but that seems designed to keep slave gerrit repositories in synch with a master gerrit repository.  That's not what I want.

Is this possible?  Any help/pointers are appreciated.

Rich


Shawn Pearce

unread,
Nov 19, 2012, 12:24:08 PM11/19/12
to Anthony Wong, repo-discuss, rsch...@bluepeach.com
On Mon, Nov 19, 2012 at 9:16 AM, Anthony Wong <won...@gmail.com> wrote:
> Our IT guy worries that if both gitolite and gerrit write to a repo at the
> same time there may be a race condition, but we're blocking writes in
> gitolite to the branch that is being reviewed in gerrit.

There is no race condition. One will succeed, and the other will fail.
They use the same locking protocol and are thus able to cooperate.
Reply all
Reply to author
Forward
0 new messages