autotest: ensure we start on master branch

This commit is contained in:
Andrew Tridgell 2015-08-27 12:03:14 +10:00
parent 9ef6abf613
commit b966f7fc3e

View File

@ -88,6 +88,9 @@ report_pull_failure() {
oldhash=$(cd APM && git rev-parse HEAD)
pushd APM
git checkout -f master
git fetch origin
git reset --hard origin/master
git pull || report_pull_failure
git clean -f -f -x -d -d
git tag autotest-$(date '+%Y-%m-%d-%H%M%S') -m "test tag `date`"