Domanda

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?

È stato utile?

Soluzione 2

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.

Altri suggerimenti

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)

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top