From 8984dafd3e626d92f286a72335be98541f72f47d Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Sun, 11 Jan 2015 21:09:34 -0500 Subject: [PATCH] Improving logic for committing diffs --- lib/gdbgitdb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)