If we're going to apply acls, we need a dir

We need the git repo to exist if we need to send in acls.

Change-Id: I29b0e8dae152e41c1a9e0556a74caa5f70813706
This commit is contained in:
Monty Taylor 2017-03-23 12:28:02 -05:00
parent 38f3a87ad6
commit f9131bd502
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 6 additions and 0 deletions

View File

@ -528,6 +528,12 @@ def main():
if acl_config:
acl_sha = acl_cache.get(acl_config)
if project_cache[project].get('acl-sha') != acl_sha:
if not os.path.exists(repo_path):
u.make_local_copy(
repo_path, project, project_list,
git_opts, ssh_env, upstream, GERRIT_HOST,
GERRIT_PORT, project_git, GERRIT_GITID)
process_acls(
acl_config, project, ACL_DIR, section,
remote_url, repo_path, ssh_env, gerrit,