Fix gerrit create-project option order.

If the require change ID option was set the gerritlib create project
method would put the require change ID option between --name and the new
project's name. This failed to execute on Gerrit properly. Fix the
ordering of the options so that --name is inserted with the project's
name.

Change-Id: I68ff45fe5815f228fcc707abfe6d0d6147f7dac1
This commit is contained in:
Clark Boylan 2012-11-15 10:11:44 -08:00
parent f8e6f03258
commit 4238a42eda
1 changed files with 2 additions and 2 deletions

View File

@ -117,10 +117,10 @@ class Gerrit(object):
return err
def createProject(self, project, require_change_id=True):
cmd = 'gerrit create-project --name'
cmd = 'gerrit create-project'
if require_change_id:
cmd = '%s --require-change-id' % cmd
cmd = '%s %s' % (cmd, project)
cmd = '%s --name %s' % (cmd, project)
out, err = self._ssh(cmd)
return err