Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Automatic Gerrit setup for Eclipse.org repos ?

So… if each and every Eclipse committer needs to setup Gerrit manually for each repo they work on, what is the simplest way doing this ?

 

In the past I have used the command-line (git config remote.review.url / git config remote.review.push) as per

https://wiki.eclipse.org/Gerrit#Adding_a_dedicated_remote

But this is awkward since I always need to find out the proper remote URL when I cloned from git:// or http:// initially.

 

I recently found that using https:// from the beginning, I can use the method from

https://wiki.eclipse.org/EGit/User_Guide#Enabling_Gerrit_for_a_repository

and I only need to enter my Gerrit username, and later the password obtained from

https://git.eclipse.org/r/#/settings/http-password

See also attached screenshot, which I was kinda missing in the EGit Docs (it was not clear for me where exactly to find the “Gerrit Configuration…”).

 

Is that the best / simplest procedure ?

Could it perhaps be simplified with a well-known file located in the repository that would identify it as Gerrit-enabled ?

Or could the workflow in EGit be simplified?

 

For example, if Right-click > Push … fails due to permission denied, a wizard could offer setting up Gerrit instead…

 

Thanks,

Martin

--

Martin Oberhuber, SMTS / Product Owner – Development Tools, Wind River

direct +43.662.457915.85  fax +43.662.457915.6

 

From: Matthias Sohn [mailto:matthias.sohn@xxxxxxxxx]
Sent: Friday, February 20, 2015 12:23 PM
To: Oberhuber, Martin
Cc: egit-dev@xxxxxxxxxxx
Subject: Re: [egit-dev] Automatic Gerrit setup for Eclipse.org repos ?

 

On Fri, Feb 20, 2015 at 11:10 AM, Oberhuber, Martin <Martin.Oberhuber@xxxxxxxxxxxxx> wrote:

Hi egit experts,

 

I would like to make it easier for adopters of our Eclipse project (TCF) to contribute.

I have set up a team project set which clones our git repo via https.

 

This is fine for browsing our repo, but as soon as somebody wants to contribute to Gerrit, they have to manually set it up.

My expectation was that egit would automatically discover that the URL from my project set is Gerrit-enabled, and would set up the Gerrit integration automatically.

I’d like to avoid the extra Gerrit setup step which looks like would be the same for all Eclipse projects on all repos.

 

Is there any way making this happen ?

 

EGit doesn't try to automagically find out if the URL of a remote points to a Gerrit server.

AFAIK you can use Oomph to provide an automated Eclipse setup for your contributors.

 

-Matthias 

Attachment: gerrit_config.png
Description: gerrit_config.png


Back to the top