Unverified Commit 4c6620b2 authored by Andreas Klöckner's avatar Andreas Klöckner Committed by GitHub
Browse files

Merge pull request #3 from isuruf/patch-1

Fix downloading main branch
parents b124a464 c7bed412
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -32,11 +32,9 @@ if [[ ! -z "$CI" ]]; then
  fi
  rm -rf .asv/env

  # Fetch the main branch if the git repository in the gitlab CI env does not have it.
  if ! git rev-parse --verify main > /dev/null 2>&1; then
  # Fetch the origin/main branch and setup main to track origin/main
  git fetch origin main || true
    git branch main origin/main
  fi
  git branch main origin/main -f
fi

if [[ ! -f ~/.asv-machine.json ]]; then