Re: gitweb is no longer a real-time view

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Kevin Grittner <kgrittn(at)mail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>, Stephen Frost <sfrost(at)snowman(dot)net>
Subject: Re: gitweb is no longer a real-time view
Date: 2013-03-04 15:11:28
Message-ID: 20130304151127.GB9507@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Alvaro Herrera 2013-03-04 15:15:26 Re: gitweb is no longer a real-time view
Previous Message Tom Lane 2013-03-04 15:09:10 Re: gitweb is no longer a real-time view