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.
I guess in your setup you could set --mirror with remote.anongit.mirror
so it only mirrors anongit but when pushing to ssh it doesnt...
Greetings,
Andres Freund
-- Andres Freund http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services