Merge pull request #877 from dachary/wip-workunit

workunit: git-reset --hard does not accept a branch

Reviewed by: Nathan Cutler <ncutler@suse.com>
This commit is contained in:
Loic Dachary 2016-03-15 16:57:29 +01:00
commit 5dd8cdd12e

View File

@ -314,13 +314,13 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None, timeout=None):
args=[
'git',
'clone',
'--branch',
refspec,
git_url,
clonedir,
run.Raw(';'),
'cd', '--', clonedir,
run.Raw('&&'),
'git', 'reset', '--hard', refspec,
run.Raw('&&'),
'mv', 'qa/workunits', srcdir,
],
)