Search code examples
gitolitesyntax-checking

How to check gitolite configuration file syntax before using it?


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?


Solution

  • 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.