public inbox for [email protected]
help / color / mirror / Atom feedFrom: Alvaro Herrera <[email protected]>
To: Andres Freund <[email protected]>
Cc: Magnus Hagander <[email protected]>
Cc: Tom Lane <[email protected]>
Cc: Kevin Grittner <[email protected]>
Cc: Peter Eisentraut <[email protected]>
Cc: PostgreSQL WWW <[email protected]>
Cc: Stephen Frost <[email protected]>
Subject: Re: gitweb is no longer a real-time view
Date: Mon, 4 Mar 2013 12:11:28 -0300
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<CABUevEwfw24iF9-czueLSmdFQwck012qfVmLXcoKbG37xG56jQ@mail.gmail.com>
<CABUevEzM2F8qAxVds9Me-41L5BqeEGO4DuosCQhC0C6v05HPUw@mail.gmail.com>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-www>
Andres Freund wrote:
> On 2013-03-04 11:58:42 -0300, Alvaro Herrera wrote:
> > Andres Freund wrote:
> > > On 2013-03-04 11:33:49 -0300, Alvaro Herrera wrote:
> > > > Andres Freund wrote:
> >
> > > > FWIW I also use a bare mirror (same setup as Kevin).
> > >
> > > I think that setup is fine as far as pulling goes, but you should push
> > > directly from the individual branches.
> >
> > From the individual repos you mean? I don't like that very much,
> > because when I back-patch something, I prefer to push all commits
> > locally to the bare mirror repo before pushing them out together to
> > gitmaster. That way, if I notice a mistake at the last minute, I can
> > still revoke everything and start afresh.
>
> > One difference in my setup is that my bare mirror has two remotes, one
> > from gitmaster and one from the anonymous mirror. The latter fetches
> > from cron every 5 minutes. The other one only fetches when I invoke it
> > manually (because it needs access to my passphrase-protected SSH key).
>
> Well, then you may not use --mirror/remote.xxx.mirror mode since that a)
> pushes all branches b) pushes new local branches c) forces updates.
Hm, there are no new local branches here; I fetch to the same branches
as the other remote:
git fetch -q anon-origin master:master REL9_2_STABLE:REL9_2_STABLE REL9_1_STABLE:REL9_1_STABLE REL9_0_STABLE:REL9_0_STABLE REL8_4_STABLE:REL8_4_STABLE REL8_3_STABLE:REL8_3_STABLE
Note this fails (which is what I want) when it's not a FF pull. So my
local repository hasn't had any corruption. In fact, to observe the
breakage, I had to do a "git fetch anon-origin master:anon-master".
I guess there clearly weren't enough protections in the gitmaster server
to prevent me from causing major breakage (hopefully there are now), but
then I'm so chicken that I triple-check these things before pushing, so
no major harm has been done by me to date, even though my setup may be
theoretically dangerous.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-www mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-www
view thread (43+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: gitweb is no longer a real-time view
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox