if len(remote_tag) > 0:
# FIXME: .id attribute but avl. in wheezy based git lib
if remote_tag[0].commit.id == curr_commit_id:
- logger.debug('Tag was already created for this commit.')
+ logger.debug('Tag {name} was already created for commit {sha}.'.format(
+ name=remote_tag[0].name,
+ sha=remote_tag[0].commit.id[0:7],
+ ))
do_tagging = False
else:
- logger.error('Tag was already created for another commit.')
+ logger.error('Tag {name} was already created for commit {sha}.'.format(
+ name=remote_tag[0].name,
+ sha=remote_tag[0].commit.id[0:7],
+ ))
exit_error()
else:
do_tagging = True