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@3d89fe92ec
This commit is contained in:
Ryan Ernst 2017-03-24 11:50:02 -07:00 committed by GitHub
parent ea273ab67e
commit 0255c45f1f

View File

@ -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