Unverified Commit 9aa99a8d authored by Andreas Klöckner's avatar Andreas Klöckner Committed by GitHub
Browse files

Merge pull request #6 from isuruf/fetch

fetch main branch only if on gitlab ci
parents 260369e0 93e2d141
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -508,10 +508,12 @@ function clone_results_repo {
    fi
    ln -s $PWD/benchmark-data/$PROJECT .asv/results

    if [[ ! -z "${GITLAB_CI}" ]]; then
      # Fetch the origin/main branch and setup main to track origin/main
      git fetch origin main || true
      git branch main origin/main -f
    fi
  fi
}

function upload_benchmark_results {