diff options
author | Guillaume Tucker <guillaume.tucker@collabora.com> | 2018-11-28 10:37:26 +0000 |
---|---|---|
committer | Guillaume Tucker <guillaume.tucker@collabora.com> | 2018-12-07 13:23:52 +0000 |
commit | ce3d1b0d416be22b5ce3f78b4de49fb982803fdf (patch) | |
tree | 68c6231a064cc16f0b172204d2d2435ac9b43f27 /jenkins/bisect.jpl | |
parent | 327394a1271b4e3ab403d33b12f080156f7489bd (diff) |
bisect.jpl: check out BAD_COMMIT rather than branch
The bad commit may not be on the branch to bisect any more, especially
in the case of "snapshot" branches that are force-pushed regularly.
For this reason, explicitly check out the BAD_COMMIT rather than the
branch name to start the bisection.
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Diffstat (limited to 'jenkins/bisect.jpl')
-rw-r--r-- | jenkins/bisect.jpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jenkins/bisect.jpl b/jenkins/bisect.jpl index e83483b..18b51c0 100644 --- a/jenkins/bisect.jpl +++ b/jenkins/bisect.jpl @@ -184,7 +184,7 @@ git checkout --detach HEAD || echo -n git branch -D ${params.KERNEL_BRANCH} || echo -n for t in \$(git tag -l | grep ${env.JOB_NAME}); do git tag -d \$t; done git fetch ${params.KERNEL_TREE} ${params.KERNEL_BRANCH} --tags -git checkout FETCH_HEAD -b ${params.KERNEL_BRANCH} +git checkout ${params.BAD_COMMIT} -b ${params.KERNEL_BRANCH} git symbolic-ref HEAD refs/heads/${params.KERNEL_BRANCH} cd - """ |