Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting GitHub and Gerrit to play nicely

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.

like image 565
Josh Smith Avatar asked Sep 15 '10 00:09

Josh Smith


People also ask

Does Gerrit work with GitHub?

Git is an open-source, version control tool created in 2005 by developers working on the Linux operating system; GitHub is a company founded in 2008 that makes tools which integrate with git. You do not need GitHub to use git, but you cannot use GitHub without using git.

Is Gerrit a Git repository?

Gerrit is a free and an open source Git version control system. The user interface of Gerrit is formed on Google Web Toolkit. It is a lightweight framework for reviewing every commit. Gerrit acts as a repository, which allows pushing the code and creates the review for your commit.


1 Answers

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

like image 200
David Bernard Avatar answered Sep 16 '22 15:09

David Bernard