I'm failing to get partial-copy working. I haven't used any VREFs so far
so this is new territory for me...
One of my users wants to make a repo public, but keep some branches
private. We can't restrict read permissions per branch with gitolite, so
we need a separate public copy of the repo containing only the public
branches. We should be able to do this automatically with partial-copy.
So I have tried to produce a small scale demo example based on the
documentation. I think this is all the relevant stuff from my
gitolite.conf:
@public = gitweb daemon
@ssh = fanf2
repo @all
option deny-rules = 1
repo git/pc-private
desc = testing partial-copy - private
RW+ = @ssh
repo git/pc-public
desc = testing partial-copy - public
- u/ = @public
R = @all
- VREF/partial-copy = @all
config gitolite.partialCopyOf = git/pc-private
I cloned the new empty pc-private repo, created a couple of commits on the
master branch, and a commit on the u/private branch, and pushed it. Then I
cloned pc-public, and it was populated from pc-private. However, pc-public
included all the branches from pc-private, including the u/private branch
which I thought would be excluded.
It seems that this setup is backwards from what we want. (Maybe that's
also where my error is?) We want to be able to work on pc-private as
before, and when we push to a public branch in pc-private, the changes are
automatically duplicated to pc-public. However in my test pc-public was
not automatically updated until I pulled from it.
Whereas the partial-copy documentation suggests that both repos can be
writable, what we want is simpler because we don't need pc-public to be
writable.
Also the config above has screwed up permissions so that pc-public isn't
readable by gitweb as it should be. This is because of the deny-rules
setting.
Tony.
--
f.anthony.n.finch <
d...@dotat.at>
http://dotat.at/
Viking, North Utsire: Southerly 4 or 5, increasing 6 to gale 8. Slight or
moderate, occasionally rough. Fair then occasional rain. Good, occasionally
poor.