Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Customize the git config in a GitCloneTask
Customize the git config in a GitCloneTask [message #1694542] Wed, 06 May 2015 07:34 Go to next message
Hugo Marchadour is currently offline Hugo MarchadourFriend
Messages: 1
Registered: March 2012
Location: Nantes
Junior Member
Hi,
I need to find a way to customize the git config of my GitCloneTask in a .setup.
typically, I hope to customize gerrit.createchangeid=true for example.

A workaround could be to append the expected customization in the {gitpath}/.git/config file:
...
[gerrit]
	createchangeid = true

but it's not a really clean way for an existing repository.

Any idea?

Regards,
Hugo
Re: Customize the git config in a GitCloneTask [message #1694587 is a reply to message #1694542] Wed, 06 May 2015 13:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Hugo,

I don't really know what's involved in accomplishing that, i.e., what
EGit/JGit APIs would be used for that and what needs to be modeled in
the GitCloneTask to drive it.

On 06/05/2015 2:21 PM, Hugo Marchadour wrote:
> Hi,
> I need to find a way to customize the git config of my GitCloneTask in
> a .setup.
> typically, I hope to customize gerrit.createchangeid=true for example.
>
> A workaround could be to append the expected customization in the
> {gitpath}/.git/config file:
>
> ..
> [gerrit]
> createchangeid = true
>
> but it's not a really clean way for an existing repository.
>
> Any idea?
>
> Regards,
> Hugo


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Customize the git config in a GitCloneTask [message #1696267 is a reply to message #1694587] Sun, 24 May 2015 21:07 Go to previous messageGo to next message
Dieter Scholz is currently offline Dieter ScholzFriend
Messages: 15
Registered: May 2015
Junior Member
Hi,

today I started to play around with the Oomph installer. Great piece of work - I was able to automate all my setup and configuration tasks.

Now I would like to integrate my Gerrit repos into my setup file and I have the same problem as Hugo. The imported repos look different than the repos created by the wizard (clone from Gerrit). It looks like a push of code for review won't work. It would be nice if this problem could be solved.

Thanks,

Dieter
Re: Customize the git config in a GitCloneTask [message #1696359 is a reply to message #1696267] Tue, 26 May 2015 05:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Dieter,

We certainly already know if it's a gerrit URI, but if your project
isn't an Eclipse project, that might not work for you. In the Eclipse
project catalog there is this variable:

<setupTask
xsi:type="setup:VariableTask"
name="eclipse.gerrit.uri.pattern"
value="(https|ssh)://([^@/]+@)?(git.eclipse.org:29418/.*|git.eclipse.org/r/.*)"/>

The git clone task looks for variables that end with
".gerrit.uri.pattern" and checks if the clone task's remote URI matches
any such variable's pattern. If so, it adds the Gerrit push refspec.
Is that the part that's not working (in which case you can add such a
variable with a patter to your project setup, or is it the config
property that's your problem?


On 25/05/2015 4:00 PM, Dieter Scholz wrote:
> Hi,
>
> today I started to play around with the Oomph installer. Great piece
> of work - I was able to automate all my setup and configuration tasks.
>
> Now I would like to integrate my Gerrit repos into my setup file and I
> have the same problem as Hugo. The imported repos look different than
> the repos created by the wizard (clone from Gerrit). It looks like a
> push of code for review won't work. It would be nice if this problem
> could be solved.
>
> Thanks,
>
> Dieter


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Customize the git config in a GitCloneTask [message #1696552 is a reply to message #1696359] Wed, 27 May 2015 08:35 Go to previous messageGo to next message
Dieter Scholz is currently offline Dieter ScholzFriend
Messages: 15
Registered: May 2015
Junior Member
Hi,

that's good news. I will try to set the property.

Thanks.

Dieter
Re: Customize the git config in a GitCloneTask [message #1737964 is a reply to message #1694542] Thu, 14 July 2016 13:11 Go to previous message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 250
Registered: July 2009
Location: Graz, Austria
Senior Member
Just as a reference: the topic is fixed with bug 492251 [1]. See examples in the last gerrit commit.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=492251
Previous Topic:ssh key settings
Next Topic:Oomph issues with Project Set
Goto Forum:
  


Current Time: Thu Apr 18 13:47:33 GMT 2024

Powered by FUDForum. Page generated in 0.02240 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top