title: Getting GitHub and Gerrit to play nicely
body: <p>I host a private repo on <a href="http://github.com" rel="noreferrer">GitHub</a>. I also want to use <a href="http://gerrit.googlecode.com" rel="noreferrer">Gerrit</a>, particularly for the <a href="http://wiki.hudson-ci.org/display/HUDSON/Gerrit+Trigger" rel="noreferrer">Hudson Gerrit Trigger plugin</a>. AFAICT, there isn't any simple solution for using them together.</p>
  
  <p>I'd appreciate any help on any of the following wants.</p>
  
  <hr>
  
  <h1>What I want</h1>
  
  <ul>
  <li>Clone GitHub repo and add to Gerrit's projects either:
  
  <ol>
  <li><a href="http://gerrit.googlecode.com/svn/documentation/2.1.5/project-setup.html#manual_creation" rel="noreferrer">manually</a>, or</li>
  <li><a href="http://gerrit.googlecode.com/svn/documentation/2.1.5/install.html#project_setup" rel="noreferrer">during <code>init</code></a></li>
  </ol></li>
  <li>Merge changes with GitHub using Gerrit</li>
  </ul>
  
  <hr>
  
  <h1>What I've tried</h1>
  
  <h2>Cloning/Adding...</h2>
  
  <p><strong>Manually</strong>: I clone the repo as normal, then add into <code>H2</code> like so:</p>
  
  <pre><code>INSERT INTO projects
  (use_contributor_agreements,submit_type,name)
  VALUES
  ('N','M','new/Repo');
  </code></pre>
  
  <p><strong>During <code>init</code></strong>:</p>
  
  <pre><code>*** Git Repositories
  ***
  
  Location of Git repositories   [git]: git@github.com:YourName/Repo.git
  </code></pre>
  
  <p>I don't think that's correct.</p>
  
  <hr>
  
  <h1>What happens</h1>
  
  <h2>Cloning/Adding...</h2>
  
  <p><strong>Manually</strong>:</p>
  
  <p>I get this error: <code>repository not found: Cannot open repository Repo</code></p>
  
  <p><strong>During <code>init</code></strong>:</p>
  
  <p>Creates the directory at <code>~/gerrit2/git@github.com:YourName/Repo.git</code> and sub-directory <code>Repo.git</code>, which itself contains an empty <code>Git</code> repo. Not exactly what I wanted.</p>