From 9e4702a3b4986883a63d2a66447a740fb31370eb Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 14 Nov 2012 08:53:37 -0800 Subject: [PATCH] Make manage project commit author consistent. Set Openstack Project Creator as the commit author for all commits in the manage_projects.py script. Change-Id: I994ee0a43e783415d0976143509497a71187b9ab Reviewed-on: https://review.openstack.org/16094 Reviewed-by: James E. Blair Approved: Monty Taylor Reviewed-by: Monty Taylor Tested-by: Jenkins --- modules/gerrit/files/scripts/manage_projects.py | 5 ++++- .../openstack_project/templates/review-dev.projects.yaml.erb | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/gerrit/files/scripts/manage_projects.py b/modules/gerrit/files/scripts/manage_projects.py index fb50b26e76..9efdfb5fc2 100755 --- a/modules/gerrit/files/scripts/manage_projects.py +++ b/modules/gerrit/files/scripts/manage_projects.py @@ -279,7 +279,10 @@ port=29418 project=%s """ % (GERRIT_HOST, project_git)) git_command(repo_path, "add .gitreview") - git_command(repo_path, "commit -a -m'Added .gitreview'") + cmd = "commit -a -m'Added .gitreview' --author=" \ + "'Openstack Project Creator " \ + "'" + git_command(repo_path, cmd) gerrit.createProject(project) if not os.path.exists(project_dir): diff --git a/modules/openstack_project/templates/review-dev.projects.yaml.erb b/modules/openstack_project/templates/review-dev.projects.yaml.erb index 378226648a..29c580575a 100644 --- a/modules/openstack_project/templates/review-dev.projects.yaml.erb +++ b/modules/openstack_project/templates/review-dev.projects.yaml.erb @@ -11,5 +11,6 @@ - project: gtest-org/gtest - project: gtest-org/test - project: gtest-org/test2 +- project: gtest-org/test3 - project: gtest-org/test-manage-project acl_config: /home/gerrit2/acls/test-manage-project.config