[Kde-scm-interest] Gitolite server-side clones and personal branches

Thomas Zander zander at kde.org
Thu Jun 17 15:48:10 CEST 2010


On Thursday 17. June 2010 12.46.48 Jeff Mitchell wrote:
> On 06/16/2010 08:42 AM, Thiago Macieira wrote:
> > Em Quarta-feira 16 Junho 2010, às 14:17:58, Johannes Sixt escreveu:
> >> But you can place such branches in a new ref namespace on the server:
> >> refs/personal/myname/mybranch (as opposed to refs/heads/personal/....).
> >> Such refs are hidden from regular clone/fetch/pull, but you can still
> >> access them using
> >> 
> >>   git pull origin personal/myname/mybranch
> >> 
> >> Users who regularly exchange topics in this way can write them down in
> >> the
> >> 
> >> config file:
> >>    fetch = +refs/personal/hausmann/*:refs/remotes/origin/hausmann/*
> >> 
> >> To push such a branch for the first time is not straight-forward, though:
> >>    git push origin my-topic:refs/personal/hausmann/my-topic
> >> 
> >> and I don't know whether cgit and redmine can show or work with such
> >> refs, and any cleanup is still not automatic ;)
> > 
> > That's no different than a separate repo.
> > 
> > The advantage is automatic sharing of objects in gc.
> 
> Not quite true -- the other advantage is that, if we have the clone on
> the cgit/redmine server pulling all personal branches, it can show those
> personal branches in the code browsers.

Which is also no difference from a separate repo by having your clone have 
multiple remotes.
-- 
Thomas Zander


More information about the Kde-scm-interest mailing list