diff --git a/tasks/workunit.py b/tasks/workunit.py index 3c102660be3..2b1d4130b5e 100644 --- a/tasks/workunit.py +++ b/tasks/workunit.py @@ -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, ], )