I would like to check the syntax of the gitolite configuration file conf/gitolite.conf
before using (pushing) it. Is there a way to achieve that?
Asked
Active
Viewed 791 times
2

Totor
- 1,148
- 1
- 10
- 21
2 Answers
0
Before pushing?
I don't see how.
The gitolite.conf
file is parse by the Conf.pm#parse
function, but that happens only on the gitolite server side (where you are pushing that file).
Note on the client side (where you have only a gitolite-admin
cloned repo)

VonC
- 1,262,500
- 529
- 4,410
- 5,250
0
VonC was right, one can use the parse
function, but it is limited.
See this answer from Sitaram (Gitolite developer) to my question: https://groups.google.com/forum/#!topic/gitolite/-YIh7yzBI2Y
It has a little (untested) code snippet to check the syntax.

Totor
- 1,148
- 1
- 10
- 21