From 3d4aa31e7822f8d55c5a527e9eaa82f56b359523 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20Kl=C3=B6ckner?= <inform@tiker.net>
Date: Sun, 14 Jul 2019 20:35:48 +0200
Subject: [PATCH] benchmark script: make sure a master branch exists

---
 build-and-benchmark-py-project.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/build-and-benchmark-py-project.sh b/build-and-benchmark-py-project.sh
index a6ed635..933f73a 100644
--- a/build-and-benchmark-py-project.sh
+++ b/build-and-benchmark-py-project.sh
@@ -30,6 +30,7 @@ if [[ ! -z "$CI" ]]; then
   rm -rf .asv/env
   # Fetch the master branch as git repository in gitlab ci env doesn't have it.
   git fetch origin master
+  git checkout -t origin/master
 fi
 
 if [[ ! -f ~/.asv-machine.json ]]; then
-- 
GitLab