> But it would be good if gitolite can detect such non-bare
> repositories. Or maybe there is another recommended configuration for
> such cases. I tried gitosis first, and it seems that it didn't have
> such problem.
I also watch svn repos with git svn, but instead of cron, I trigger "git
svn rebase" by some svn update hook (which sends out a mail to me, which
in turn triggers my script).
In fact, my setup is then that the git svn clone lives in some
"autosync" dir. My script then does also a "git push" to a (bare) repo
that is controlled by gitolite. So basically, the script is the only
person that is allowed write access. Once you have this, I am sure you
know how you can handle the rest with gitolite.
So the simple trick is: use one (non-bare) repo for git svn and a bare
repo for gitolite. I don't think that harddisk space is a big issue, or
is it?
Ralf
I'm sorry but right from the subject line, even without reading the
email, I can tell you I will not be supporting this. Server-side
repos are supposed to be bare, and I don't see why that needs to be
compromised. I notice that Ralf had another solution for you in a
later email; I hope you will use that.
> I solved the problem temporary by adding empty hooks subdirectory to
> the root of the source tree for such svn-cloned repos, and then
> gitolite works (assuming that real .git/hooks/ dir also exists and
> there are gitolites hooks in it).
I find no basis for that assumption. Which means in turn that
branch-level authentication may not work any more.
> But it would be good if gitolite can detect such non-bare
> repositories. Or maybe there is another recommended configuration for
> such cases. I tried gitosis first, and it seems that it didn't have
> such problem.
Sure, but gitosis doesn't have branch-level access control, so it
doesn't put any hook in *each* repo, only a "post-update" hook in the
admin repo.
--
Sitaram
> branch-level authentication may not work any more.
damn typo... branch-level authorisation (or access control).
Obviously not *authentication* <sigh>
I have few gitolite repositories including some which are read-only
SVN clones (to keep an eye on SVN repos which are not ours). And I use
git svn rebase by cron for them.