The sha1 for the workunit task is always set by the suite.py task. The
tag must be checked before the sha1 othewise it cannot be used to
override the sha1.
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit
7de33f082e7d7108036912d9ce2076fd309d6cd2)
misc.deep_merge(config, overrides.get('workunit', {}))
refspec = config.get('branch')
- if refspec is None:
- refspec = config.get('sha1')
if refspec is None:
refspec = config.get('tag')
+ if refspec is None:
+ refspec = config.get('sha1')
if refspec is None:
refspec = 'HEAD'