FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 02-25-2012, 11:55 AM
Justin
 
Default github <> g.o.g.o

Hi all,

is there a way to do a way or two way sync between a repo on github and
on g.o.g.o?

I have the felling that I heard of an official overlay which is operated
like this. Could someone please point me to this overlay and the technique?


thanks justin
 
Old 02-25-2012, 02:11 PM
Alex Alexander
 
Default github <> g.o.g.o

On Sat, Feb 25, 2012 at 01:55:37PM +0100, Justin wrote:
> Hi all,
>
> is there a way to do a way or two way sync between a repo on github and
> on g.o.g.o?
>
> I have the felling that I heard of an official overlay which is operated
> like this. Could someone please point me to this overlay and the technique?

For every secondary repo you want to keep synced, add a pushurl entry

pushurl = <git-repo-url>

below your main "url =" line in the repo's .git/config file.
Git will automatically push to all pushurl entries automatically when
you "git push".

We do this in the Qt overlay (with gitorious atm):

[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git://git.overlays.gentoo.org/proj/qt.git
pushurl = git@gitorious.org:gentoo-qt/qt.git

Regards,
--
Alex Alexander | wired
+ Gentoo Linux Developer
++ www.linuxized.com
 
Old 02-27-2012, 07:22 AM
justin
 
Default github <> g.o.g.o

On 25/02/12 16:11, Alex Alexander wrote:
> On Sat, Feb 25, 2012 at 01:55:37PM +0100, Justin wrote:
>> Hi all,
>>
>> is there a way to do a way or two way sync between a repo on github and
>> on g.o.g.o?
>>
>> I have the felling that I heard of an official overlay which is operated
>> like this. Could someone please point me to this overlay and the technique?
>
> For every secondary repo you want to keep synced, add a pushurl entry
>
> pushurl = <git-repo-url>
>
> below your main "url =" line in the repo's .git/config file.
> Git will automatically push to all pushurl entries automatically when
> you "git push".
>
> We do this in the Qt overlay (with gitorious atm):
>
> [remote "origin"]
> fetch = +refs/heads/*:refs/remotes/origin/*
> url = git://git.overlays.gentoo.org/proj/qt.git
> pushurl = git@gitorious.org:gentoo-qt/qt.git
>
> Regards,

Thanks,

this works really nice.

justin
 

Thread Tools




All times are GMT. The time now is 05:57 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org