fix git push failure
authorLin Yang <lin.a.yang@intel.com>
Fri, 22 Mar 2013 12:36:19 +0000 (20:36 +0800)
committerGerrit Code Review <gerrit2@otctools.jf.intel.com>
Fri, 29 Mar 2013 02:06:59 +0000 (19:06 -0700)
Current gbp only accept parameter without space, so split args to two parts.

Change-Id: I7c25e18fa795099da14b4586fd51db43f3be8ded
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
job_request.py

index 7898331..6d3ea48 100755 (executable)
@@ -183,9 +183,8 @@ def request_accepted(data, gerrit, gitprj):
     gitprj.create_tag(accepted_tag, message, data['commitid'])
 
     args = []
-    args.append('ssh://%s@%s:%s/%s' %(gerrit.username, gerrit.host, gerrit.port, data['GIT_PROJECT']))
-    args.append('refs/tags/%s' %(accepted_tag))
-    gitprj.push(' '.join(args))
+    gitprj.push('ssh://%s@%s:%s/%s' %(gerrit.username, gerrit.host, gerrit.port, data['GIT_PROJECT']),
+                'refs/tags/%s' %(accepted_tag))
 
 def request_rejected(data, gerrit, gitprj):
     print '====request rejected===================================='