fix(NA): buildkite es_snapshot build job after es default branch rename to main (#137109)

This commit is contained in:
Tiago Costa 2022-07-25 20:43:35 +01:00 committed by GitHub
parent b2825cb9a8
commit 242c91a432
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,10 +14,6 @@ mkdir -p "$destination"
mkdir -p elasticsearch && cd elasticsearch
export ELASTICSEARCH_BRANCH="${ELASTICSEARCH_BRANCH:-$BUILDKITE_BRANCH}"
# Until ES renames their master branch to main...
if [[ "$ELASTICSEARCH_BRANCH" == "main" ]]; then
export ELASTICSEARCH_BRANCH="master"
fi
if [[ ! -d .git ]]; then
git init