diff options
Diffstat (limited to 'abe-bisect.sh')
-rwxr-xr-x | abe-bisect.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/abe-bisect.sh b/abe-bisect.sh index 5c269e09..42c09091 100755 --- a/abe-bisect.sh +++ b/abe-bisect.sh @@ -48,14 +48,15 @@ ABE=${rundir}/abe ${ABE}/configure --with-git-reference-dir=/home/tcwg-buildslave/snapshots-ref # Checkout GCC master -rm -rf snapshots/gcc.git~master -${ABE}/abe.sh --target $TARGET gcc=gcc.git~master --checkout all +${ABE}/abe.sh --target $TARGET --retrieve all -cd snapshots/gcc.git~master +rm -rf gcc-bisect-dir +git-new-workdir ./snapshots/gcc.git gcc-bisect-dir +cd gcc-bisect-dir git bisect reset git reset --hard -git pull # Workaround abe bug, where it can checkout an outdated version +git pull git bisect start --no-checkout GOODSHA1=`git log --format=format:"%H" --grep=trunk@${GOOD} master` @@ -64,6 +65,9 @@ BADSHA1=`git log --format=format:"%H" --grep=trunk@${BAD} master` echo GOOD: $GOODSHA1 echo BAD: $BADSHA1 +[ x"$GOODSHA1" = x ] && echo "ERROR: Could not find good commit ($GOOD)" && exit 1 +[ x"$BADSHA1" = x ] && echo "ERROR: Could not find bad commit ($BAD)" && exit 1 + git bisect good ${GOODSHA1} git bisect bad ${BADSHA1} |