keeping the gitolite repository locally updated

17 views
Skip to first unread message

IMMO WETZEL

unread,
Jul 20, 2015, 7:15:46 AM7/20/15
to gito...@googlegroups.com

Hi,

 

I need to keep the official gitolite repository on my gitolite server  to provide this to a testbed network without external access.

 

Therefore I added just a new repository on my gitolite server (he has to legs one for testbed and one for office+internet) and filled it with a push from my desktop. But how to keep this repository updated on the server automatically without my desktop as a man in the middle ?

 

My idea was to start a cron job with starts a git fetch git://github.com/sitaramc/gitolite  inside the repositories/gtolite.git dir. It looks like a working solution

 

Would this be also you choice ?

 

Immo

 

Sitaram Chamarty

unread,
Jul 20, 2015, 7:27:37 AM7/20/15
to IMMO WETZEL, gito...@googlegroups.com
On 07/20/2015 04:45 PM, IMMO WETZEL wrote:
> Hi,

> I need to keep the official gitolite repository on my gitolite server
> to provide this to a testbed network without external access.
>
> Therefore I added just a new repository on my gitolite server (he has
> to legs one for testbed and one for office+internet) and filled it
> with a push from my desktop. But how to keep this repository updated
> on the server automatically without my desktop as a man in the middle

see src/commands/upstream; this is for *any* repo where you need a
read-only local copy of a remote repo. Instructions are in the same
file (no separate documentation).

IMMO WETZEL

unread,
Jul 21, 2015, 9:19:17 AM7/21/15
to gito...@googlegroups.com
Ok upstream seems to work fine. Thanks for pointing to that...
How about the slave mirrors on my gitolite server cloud ?

Whould they work with master/slave or should they use upstream as well just with the master as target...

Immo

Sitaram Chamarty

unread,
Jul 21, 2015, 9:37:22 AM7/21/15
to IMMO WETZEL, gito...@googlegroups.com
On 07/21/2015 06:49 PM, IMMO WETZEL wrote:
> Ok upstream seems to work fine. Thanks for pointing to that...
> How about the slave mirrors on my gitolite server cloud ?
>
> Whould they work with master/slave or should they use upstream as well
> just with the master as target...

Do you mean: how would a gitolite slave deal with a repo which is
maintained on a "master" gitolite server using "upstream"?

It won't work out of the box. Gitolite mirroring is triggered by a
push, and in a repo that is maintained as a local copy of an upstream
repo, no pushes are happening. As you can see from
src/commands/upstream, it gets updates by "git fetch ...".

It is possible to manually trigger a mirroring operation (see help in
'gitolite mirror -h'), but that is not synchronised in any way with the
incoming updates.

If you meant something else please explain in more detail so I can
understand.
Reply all
Reply to author
Forward
0 new messages