Current implementation puts git tag as a commit id into the SR comment.
This change will make repa to use git_commit from the meta if it's
present there. Backend should be also modified to put git_commit into
meta: https://otctools.jf.intel.com/pm/issues/1732
Fixes: #1709
Change-Id: Iae01404652160fb4d86a1c0236e226b28773d225
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/10664
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
# osc request accept [-m TEXT] ID
print "submission %s" % str(name)
+ commit = meta.get('git_commit') or meta['git_tag']
+
message = "Comments: %s \nGit project: %s\nTag: %s\nCommit: %s" \
% (comment or "submission %s" % str(name),
meta['projects'][0],
meta['git_tag'],
- meta['git_tag'])
+ commit)
for pkg in obs.get_source_packages(project):
# Create SR