use tag_exists() to check if something has already been tagged

Change-Id: Ia144dc1d261d669f734423a60770a65c8819b118
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann
2017-08-03 11:33:27 -04:00
parent 3feca1b2ec
commit be8118c542

View File

@@ -229,7 +229,7 @@ def main():
for project in new_release['projects']:
tag_exists = gitutils.commit_exists(
tag_exists = gitutils.tag_exists(
project['repo'],
new_release['version'],
)
@@ -366,9 +366,9 @@ def main():
# regular commit instead of the appropriate merge commit.
previous_tag_exists = False
if previous_release:
previous_tag_exists = gitutils.commit_exists(
previous_tag_exists = gitutils.tag_exists(
project['repo'],
previous_release,
previous_release['version'],
)
if previous_tag_exists:
git_log(