Remove deprecated create-project '--name' option

The create-project '--name' option was removed[1] in Gerrit 2.12.
Update gerritlib to match the command for Gerrit-2.12+. This is also
compatible with Gerrit 2.11

[1] https://gerrit-review.googlesource.com/#/c/69738/

Change-Id: Ie70d938501cbf88dbbb0e9ab22abcc921f89ccdc
This commit is contained in:
Khai Do 2016-11-17 16:39:13 -08:00
parent 33feeb837b
commit 4527edd4ad
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ class Gerrit(object):
if description:
cmd = "%s --description \"%s\"" % \
(cmd, description.replace('"', r'\"'))
cmd = '%s --name "%s"' % (cmd, project)
cmd = '%s "%s"' % (cmd, project)
out, err = self._ssh(cmd)
return err