Build: Use a deep clone of ES for ci (elastic/x-pack-elasticsearch#840)
WIth the addition of building the backcompat version in elasticsearch, a
shallow clone no longer works, as we need to have eg 5.x branch
available. This change removes the depth argument from cloning
elasticsearch.
Original commit: elastic/x-pack-elasticsearch@3d89fe92ec2db2672bea455510ed9e5ee958b955
@@ -95,7 +95,7 @@ if [ -z ${USE_EXISTING_ES:+x} ]; then
BRANCH=$PR_TARGET_BRANCH
fi
echo "Checking out Elasticsearch '$BRANCH' branch..."
- git clone -b $BRANCH https://github.com/elastic/elasticsearch.git --depth=1
+ git clone -b $BRANCH https://github.com/elastic/elasticsearch.git
printf "Checked out Elasticsearch revision: %s\n" "$(git -C elasticsearch rev-parse HEAD)"
else
if [ -d "./elasticsearch" ]; then
