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:
parent
f8e6f03258
commit
4238a42eda
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user