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===================================='