Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Setting up additional remotes for GIT repository
Setting up additional remotes for GIT repository [message #778324] Thu, 12 January 2012 11:53 Go to next message
Alexander May is currently offline Alexander MayFriend
Messages: 20
Registered: March 2011
Junior Member
Hi,

I am currently evaluating the options for us moving from a setup with subversion as CMS to a combination of git and gerrit. The setup work fine also including buckminster to provision my workspace, only one whish left:

Is it possible to define in my RMAP to create additional remotes for the repository? The only references I found regarding remotes are the two parameters git.remote.uri and git.remote.name. But I can't figure out how to use thme to define more than one remote for the new repository.

Having a feature like this would make it possible to use buckminster for setup of different users workspaces without any manual rework afterwards.

Thanks,
Alexander
Re: Setting up additional remotes for GIT repository [message #778459 is a reply to message #778324] Thu, 12 January 2012 13:14 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Just to check that I understand your question. Do you want Buckminster
to configure the local git clone so it has knowledge of more than a
single remote git repository?

This is not something Buckminster can do at the moment. I can think of a
lot of things you may want to specify/do with the clone when configuring
- such as specifying how much history, which branches to fetch, creating
tracking branches etc.

Don't know if we have any issues logged that covers this. Thomas?

- henrik

On 2012-12-01 12:53, Alexander May wrote:
> Hi,
>
> I am currently evaluating the options for us moving from a setup with
> subversion as CMS to a combination of git and gerrit. The setup work
> fine also including buckminster to provision my workspace, only one
> whish left:
>
> Is it possible to define in my RMAP to create additional remotes for the
> repository? The only references I found regarding remotes are the two
> parameters git.remote.uri and git.remote.name. But I can't figure out
> how to use thme to define more than one remote for the new repository.
>
> Having a feature like this would make it possible to use buckminster for
> setup of different users workspaces without any manual rework afterwards.
>
> Thanks,
> Alexander
Re: Setting up additional remotes for GIT repository [message #778460 is a reply to message #778459] Thu, 12 January 2012 13:50 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 2012-01-12 14:14, Henrik Lindberg wrote:
> Just to check that I understand your question. Do you want Buckminster
> to configure the local git clone so it has knowledge of more than a
> single remote git repository?
>
> This is not something Buckminster can do at the moment. I can think of a
> lot of things you may want to specify/do with the clone when configuring
> - such as specifying how much history, which branches to fetch, creating
> tracking branches etc.
>
> Don't know if we have any issues logged that covers this. Thomas?
>
No, no issues so please enter one for this. Can't

- thomas
Re: Setting up additional remotes for GIT repository [message #778461 is a reply to message #778460] Thu, 12 January 2012 13:53 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Oops. Didn't mean to post with an incomplete last sentence. What I meant
to write was:

Can't make any promises about priority for this since I think the need
for this particular function is limited. An attached functional patch
will of course increase the chance of getting it in significantly :-)

- thomas



On 2012-01-12 14:50, Thomas Hallgren wrote:
> On 2012-01-12 14:14, Henrik Lindberg wrote:
>> Just to check that I understand your question. Do you want Buckminster
>> to configure the local git clone so it has knowledge of more than a
>> single remote git repository?
>>
>> This is not something Buckminster can do at the moment. I can think of a
>> lot of things you may want to specify/do with the clone when configuring
>> - such as specifying how much history, which branches to fetch, creating
>> tracking branches etc.
>>
>> Don't know if we have any issues logged that covers this. Thomas?
>>
> No, no issues so please enter one for this. Can't
>
> - thomas
Re: Setting up additional remotes for GIT repository [message #778550 is a reply to message #778461] Fri, 13 January 2012 08:32 Go to previous messageGo to next message
Alexander May is currently offline Alexander MayFriend
Messages: 20
Registered: March 2011
Junior Member
Right, Henrik, thats exactly what I want to do. For us currently only the option of adding different remotes is interesting, as this is something that should be the same for all developers (at least for some remotes, such as our gerrit server). Anyhow one should keep those other options in mind for further improvements.

I will create an issue for that when we are sure that we stick to this solution and then are really interested in this feature. Untill now I'm just investigating and don't want to create too much work for anyone that we maybe never use lateron.

Anyhow, do you have any suggestions where to start looking for such improvemnts, as you are the guys who know the buckminster code much better than me.

Alexander
Re: Setting up additional remotes for GIT repository [message #778959 is a reply to message #778550] Sat, 14 January 2012 08:19 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 2012-01-13 09:32, Alexander May wrote:
> Anyhow, do you have any suggestions where to start looking for such
> improvemnts, as you are the guys who know the buckminster code much
> better than me.
>
I would start here:

http://git.eclipse.org/c/buckminster/buckminster.git/plain/org.eclipse.buckminster.git/src/org/eclipse/buckminster/git/internal/RepositoryAccess.java

The cloning takes place in the method getRepository() and I guess adding
things to the remote configuration must take place right after that.

Regards,
Thomas Hallgren
Previous Topic:Import via MSPEC via HTTP
Next Topic:/usr/bin/sign on a windows machine
Goto Forum:
  


Current Time: Tue Mar 19 05:39:32 GMT 2024

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

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

Back to the top