Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Git Clone Task - redirect to private fork
Git Clone Task - redirect to private fork [message #1692707] Fri, 17 April 2015 12:12 Go to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Assume that I want to contribute to a GitHub project for which I have no write access. Typically, I will fork the repository, make the change, push it to my fork and create a pull request. Right?

If the project provides an Oomph setup, it will involve a GitCloneTask pointing to the original repository. Ideally, I want to reuse the original setup for my own fork without having to modify it.

I tried creating a redirect task (redirecting the original URL - which I have to find out beforehand - to the fork URL) in the User model prior to installing the project. This seemed to work, but I was wondering if this is the recommended way for dealing the the above scenario. Possibly, there are better solutions or built in features?

Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Re: Git Clone Task - redirect to private fork [message #1692753 is a reply to message #1692707] Fri, 17 April 2015 14:35 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Alex,

Most of the setups I've authored, a list of clone choices are offered,
i.e., https, git, ssh versions, so in that field one could enter the
clone of a fork...

On 17.04.2015 14:12, Alexander Nittka wrote:
> Assume that I want to contribute to a GitHub project for which I have no
> write access. Typically, I will fork the repository, make the change,
> push it to my fork and create a pull request. Right?
>
> If the project provides an Oomph setup, it will involve a GitCloneTask
> pointing to the original repository. Ideally, I want to reuse the
> original setup for my own fork without having to modify it.
>
> I tried creating a redirect task (redirecting the original URL - which I
> have to find out beforehand - to the fork URL) in the User model prior
> to installing the project. This seemed to work, but I was wondering if
> this is the recommended way for dealing the the above scenario.
> Possibly, there are better solutions or built in features?
>
> Alex


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Git Clone Task - redirect to private fork [message #1692757 is a reply to message #1692753] Fri, 17 April 2015 15:10 Go to previous message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Ed Merks wrote on Fri, 17 April 2015 16:35
... so in that field one could enter the
clone of a fork...


Well, sometimes things are easy. It never occurred to me that I could simply paste my fork's location. Rolling Eyes Why type anything if there is a drop-down box?

Thanks a lot,

Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de

[Updated on: Fri, 17 April 2015 15:10]

Report message to a moderator

Previous Topic:Setup model for the Buildship project
Next Topic:Resource Variable Task - Browse-Button
Goto Forum:
  


Current Time: Fri Apr 26 04:18:22 GMT 2024

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

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

Back to the top