From 77a4ae225170d4f97c315f890270b02d3bdd784c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 17 2014 14:21:46 +0000 Subject: Let's try to run `gl-compile-conf` after the gitolite.conf is re-generated --- diff --git a/progit/__init__.py b/progit/__init__.py index 57494b9..b8b0589 100644 --- a/progit/__init__.py +++ b/progit/__init__.py @@ -112,6 +112,18 @@ def generate_gitolite_acls(): progit.lib.generate_gitolite_acls( SESSION, APP.config['GITOLITE_CONFIG']) + gitolite_folder = APP.config.get('GITOLITE_HOME', None) + if gitolite_folder: + cur_wd = os.getcwd() + os.chdir(gitolite_folder) + cmd = [ + 'export GL_RC=%s' % APP.config.get('GL_RC'), + 'export GL_BINDIR=%s' % APP.config.get('GL_BINDIR'), + '%s/gl-compile-conf' % APP.config.get('GL_BINDIR'), + ] + subprocess.call(cmd, shell=True) + os.chdir(cur_wd) + def cla_required(function): """ Flask decorator to retrict access to CLA signed user.