Add tag name to the information returned by the
MirrorGitRepository.get_tag_info() method. This information will also
be automatically written by the write_treeish_meta() function, and thus,
available in the meta data exported when using --git-meta.
Change-Id: Ibc20ac137c1102fea15a39a222f7dd228f5f5f99
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
match = tagger_re.match(line)
if match:
info['tagger'] = match.groupdict()
+ if line.startswith('tag '):
+ info['tagname'] = line.split(' ', 1)[1]
if not line:
break
cls.repo.create_tag('tag', msg='Subject\n\nBody')
# Reference meta
- cls.tag_meta = {'sha1': cls.repo.rev_parse('tag'),
+ cls.tag_meta = {'tagname': 'tag',
+ 'sha1': cls.repo.rev_parse('tag'),
'tagger': committer,
'subject': 'Subject',
'body': 'Body\n'}