views:

76

answers:

1

I host a private repo on GitHub. I also want to use Gerrit, particularly for the Hudson Gerrit Trigger plugin. AFAICT, there isn't any simple solution for using them together.

I'd appreciate any help on any of the following wants.


What I want

  • Clone GitHub repo and add to Gerrit's projects either:
    1. manually, or
    2. during init
  • Merge changes with GitHub using Gerrit

What I've tried

Cloning/Adding...

Manually: I clone the repo as normal, then add into H2 like so:

INSERT INTO projects
(use_contributor_agreements,submit_type,name)
VALUES
('N','M','new/Repo');

During init:

*** Git Repositories
***

Location of Git repositories   [git]: [email protected]:YourName/Repo.git

I don't think that's correct.


What happens

Cloning/Adding...

Manually:

I get this error: repository not found: Cannot open repository Repo

During init:

Creates the directory at ~/gerrit2/[email protected]:YourName/Repo.git and sub-directory Repo.git, which itself contains an empty Git repo. Not exactly what I wanted.

A: 

Not try myself, but you could use gerrit repo and mirror to github

David Bernard