| |
@@ -65,6 +65,18 @@
|
| |
class DistGitoliteAuth(Gitolite3Auth):
|
| |
""" A dist-git's gitolite authentication module. """
|
| |
|
| |
+ @staticmethod
|
| |
+ def _get_gitolite_command():
|
| |
+ """ Return the gitolite command to run based on the info in the
|
| |
+ configuration file.
|
| |
+ """
|
| |
+ _log.info('Compiling the gitolite configuration')
|
| |
+ gitolite_folder = pagure.APP.config.get('GITOLITE_HOME', None)
|
| |
+ if gitolite_folder:
|
| |
+ cmd = 'HOME=%s gitolite compile' % (gitolite_folder)
|
| |
+ _log.debug('Command: %s', cmd)
|
| |
+ return cmd
|
| |
+
|
| |
@classmethod
|
| |
def _process_project(cls, project, config, global_pr_only):
|
| |
""" Generate the gitolite configuration for the specified project.
|
| |
So let's do just that instead of compile then trigger POST_COMPILE
as done on pagure.io
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr