Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » configuring git push
configuring git push [message #1721073] Sat, 23 January 2016 10:16 Go to next message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
Hi,

we used to have something like

pushuri=HEAD:/refs/for/master in our setup.

And the got somehow to configure the git

remote.origin.push

setting correctly.

Now it seems to configure remote.origin.pushuri, but we don't want that.

How would we configure the push setting as before?

Thanks,

Andreas
Re: configuring git push [message #1721074 is a reply to message #1721073] Sat, 23 January 2016 10:33 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Andreas,

I'm having trouble interpreting this. Note there's logic for finding
variables that specify a pattern to match URIs that should be considered
Gerrit URIs.


for (Object key : context.keySet())
{
if (key instanceof String)
{
if (key.toString().endsWith(".gerrit.uri.pattern"))


So perhaps something else about your URI has changed that it's not
recognized as a Gerrit URI?


On 23/01/2016 11:16 AM, Andreas Graf wrote:
> Hi,
>
> we used to have something like
>
> pushuri=HEAD:/refs/for/master in our setup.
>
> And the got somehow to configure the git
> remote.origin.push
>
> setting correctly.
>
> Now it seems to configure remote.origin.pushuri, but we don't want that.
>
> How would we configure the push setting as before?
>
> Thanks,
>
> Andreas
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: configuring git push [message #1721082 is a reply to message #1721074] Sat, 23 January 2016 14:06 Go to previous messageGo to next message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
Hi Ed,

let me try to rephrase it.
In terms of
git config -l

I would like to configure the git so that the following parameter is set
remote.origin.push=HEAD:refs/for/master

I think that used to work by setting the pushURI property in the GitCloneTask of the .setup. However, now this seems to result in
remote.origin.pushURI=HEAD:refs/for/master

The question basically is, how to configure the gitclonetask so that
remote.origin.push=HEAD:refs/for/master
will be set.

I tried to add a configsection but I could not find documentation on that so that may be incorrectly configured.

<setupTask
xsi:type="git:GitCloneTask"
location="${gitdir}"
remoteURI="https://XXX/gerrit/p/YYYY"
pushURI=""
checkoutBranch="master">
<configSections
name="">
<properties
key="remote.origin.push"
value="HEAD:refs/for/master"/>
</configSections>
</setupTask>



Re: configuring git push [message #1721300 is a reply to message #1721082] Tue, 26 January 2016 12:33 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Andreas,

Perhaps the push URI being the empty string isn't quite right.

I think the section name must be "remote", the subsection name
"origin", and the key "push".

Play around with it and see what it looks like in the
<clone>/.git/config file.


On 23.01.2016 15:06, Andreas Graf wrote:
> Hi Ed,
>
> let me try to rephrase it.
> In terms of git config -l
>
> I would like to configure the git so that the following parameter is set
> remote.origin.push=HEAD:refs/for/master
>
> I think that used to work by setting the pushURI property in the
> GitCloneTask of the .setup. However, now this seems to result in
> remote.origin.pushURI=HEAD:refs/for/master
>
> The question basically is, how to configure the gitclonetask so that
> remote.origin.push=HEAD:refs/for/master
> will be set.
>
> I tried to add a configsection but I could not find documentation on
> that so that may be incorrectly configured.
>
> <setupTask
> xsi:type="git:GitCloneTask"
> location="${gitdir}"
> remoteURI="https://XXX/gerrit/p/YYYY"
> pushURI=""
> checkoutBranch="master">
> <configSections
> name="">
> <properties
> key="remote.origin.push"
> value="HEAD:refs/for/master"/>
> </configSections>
> </setupTask>
>
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: configuring git push [message #1721306 is a reply to message #1721300] Tue, 26 January 2016 12:58 Go to previous message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
Hi Ed,

it all works now.

* I set the pushURI to entry
* built up a ConfigSection/SubSection/Value for orgin.master.push=

Seems to install correctly
Previous Topic:What is the annotation UserPreferences used for
Next Topic:Access to coporate maven server with oomph
Goto Forum:
  


Current Time: Fri Apr 26 23:26:27 GMT 2024

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

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

Back to the top