diff --git a/lib/gdbgitdb.py b/lib/gdbgitdb.py index c70525e..c660bbc 100644 --- a/lib/gdbgitdb.py +++ b/lib/gdbgitdb.py @@ -46,12 +46,12 @@ class SaveGDBResults (ShellCommand): else: myhead = repo.heads[builder] - myhead.checkout () if full_tag not in repo.tags: + myhead.checkout () + repo.index.add (['%s/gdb.sum' % builder, + '%s/gdb.log' % builder, + '%s/%s/baseline' % (builder, branch)]) if repo.is_dirty (): - repo.index.add (['%s/gdb.sum' % builder, - '%s/gdb.log' % builder, - '%s/%s/baseline' % (builder, branch)]) repo.index.commit ('Log files for %s' % full_tag) repo.index.write () repo.create_tag (full_tag)