Only create commit and tag if tag does not exist

This commit is contained in:
Sergio Durigan Junior 2014-12-23 02:36:01 -05:00
parent 9635be1ae7
commit d3e85f9afd

View file

@ -27,6 +27,7 @@ class SaveGDBResults (ShellCommand):
# Do nothing
return SUCCESS
repo = git.Repo.init (path = repodir)
if rev not in repo.tags:
if repo.is_dirty ():
repo.index.add (['gdb.sum', 'gdb.log', '%s/baseline' % branch])
repo.index.commit ('Log files for %s' % rev)