embed "test commands" in gitolite.conf

10 views
Skip to first unread message

Sitaram Chamarty

unread,
Apr 15, 2017, 1:18:14 AM4/15/17
to gito...@googlegroups.com, gitolite...@googlegroups.com, dolmen
Hi all,

Now you can test gitolite.conf access rules **on the client**
before you push them out to the server.

Executive summary, it can be as simple as this:

repo foo
RW+ = u1

=begin testconf
gitolite access -q foo u1 + any || echo FAILED
=end

and, before you push, run 'testconf'. Of course there's a few
more things you have to do on a "one-time" basis -- the file
contrib/utils/testconf has the documentation and all the
details.

One minor, temporary, correction: the doc says you need at least
v3.6.7, which has not been released yet of course. What it
really means is "the latest master" at the time of writing this
mail.

Thanks to Olivier for asking for this feature.

regards
sitaram
Reply all
Reply to author
Forward
0 new messages