Gitolite does not do that. If you need *caching* of external repos,
try 'gitpod': https://github.com/sitaramc/gitpod
damn... gitolite *can* do that. My instructions for gitpod say how to
make it work!
sweet... (and I'm getting old[er], sigh!)
--
Sitaram
It'll be great if the feature can be integrated into gitolite. I want
to maintain some open source repos as well as private branches (forks
of public repos) in the same repos, so that changes can be
diffed/merged/rebased easily when upstream changes. I want to allow
write access to these mirrored repos in these private branches (with a
prefix) and read-only for the original branches. Thanks to the tip of
gl-pre-git, I think I can check for remote.origin.mirror and maybe a
gitolite.mirror.ttl (to avoid fetch every time or a cron job) in the
repo config to do git fetch there.
IMO, this logic should be part of gitolite. For normal repos, it does
nothing. For clone mirrored repos, it works automagically.
There is nothing here that cannot be done by a gl-pre-git hook.
Write one and I'll add it to "contrib" but it's not going in "core". Sorry :)
# gitolite mirror
@mirror = mirror/gitolite
repo mirror/gitolite
config remote.origin.url = git://github.com/sitaramc/gitolite.git
config remote.github.url = g...@github.com:kaos/gitolite.git
# cgit mirror
@mirror = mirror/cgit
repo mirror/cgit
config remote.origin.url = git://hjemli.net/pub/git/cgit
config remote.github.url = g...@github.com:kaos/cgit.git
# zotonic mirror
@mirror = mirror/zotonic
repo mirror/zotonic
config remote.origin.url = git://github.com/zotonic/zotonic.git
config remote.github.url = g...@github.com:kaos/zotonic.git
## default config for all git-based mirrors
repo @mirror
R = @all
config gitweb.owner =
config remote.origin.fetch = +refs/heads/*:refs/heads/*
config remote.github.mirror = true
option cgit.section = Mirrors
option cgit.visible-for = *
## subversion mirror of cpputest
repo mirror/cpputest
R = @all
config gitweb.owner =
option cgit.section = Mirrors
option cgit.visible-for = *
config svn-remote.svn.url = https://cpputest.svn.sourceforge.net/svnroot/cpputest
config svn-remote.svn.fetch = trunk:refs/heads/master
config svn-remote.svn.branches = branches/*:refs/heads/*
config svn-remote.svn.tags = tags/*:refs/tags/*
config remote.github.url = g...@github.com:kaos/cpputest.git
config remote.github.mirror = true
## cvs mirror of ecos
repo mirror/ecos
R = @all
config gitweb.owner =
option cgit.section = Mirrors
option cgit.visible-for = *
config cvsimport.module = ecos
config cvsimport.d = :pserver:ano...@ecos.sourceware.org:/cvs/ecos
config remote.github-mirror.url = g...@github.com:kaos/ecos.git
config remote.github-mirror.mirror = true
On Tue, Jun 5, 2012 at 12:45 PM, Andreas Stenius <g...@astekk.se> wrote:
> I didn't look to close at the pre git trigger, so I'm not sure what it
> does/how it works.
Using pre git trigger and per repo configurable nice/ttl is easier and
more versatile than having to configure cron jobs. It also does not
waste resource (cpu/bandwidth) on less used the repos.