Gentoo Archives: gentoo-dev

From: justin <jlec@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] github <> g.o.g.o
Date: Mon, 27 Feb 2012 08:23:32
Message-Id: 4F4B3D51.4080901@gentoo.org
In Reply to: Re: [gentoo-dev] github <> g.o.g.o by Alex Alexander
1 On 25/02/12 16:11, Alex Alexander wrote:
2 > On Sat, Feb 25, 2012 at 01:55:37PM +0100, Justin wrote:
3 >> Hi all,
4 >>
5 >> is there a way to do a way or two way sync between a repo on github and
6 >> on g.o.g.o?
7 >>
8 >> I have the felling that I heard of an official overlay which is operated
9 >> like this. Could someone please point me to this overlay and the technique?
10 >
11 > For every secondary repo you want to keep synced, add a pushurl entry
12 >
13 > pushurl = <git-repo-url>
14 >
15 > below your main "url =" line in the repo's .git/config file.
16 > Git will automatically push to all pushurl entries automatically when
17 > you "git push".
18 >
19 > We do this in the Qt overlay (with gitorious atm):
20 >
21 > [remote "origin"]
22 > fetch = +refs/heads/*:refs/remotes/origin/*
23 > url = git://git.overlays.gentoo.org/proj/qt.git
24 > pushurl = git@×××××××××.org:gentoo-qt/qt.git
25 >
26 > Regards,
27
28 Thanks,
29
30 this works really nice.
31
32 justin

Attachments

File name MIME type
signature.asc application/pgp-signature