diff --git a/script/update_beats.sh b/script/update_beats.sh index 62936256091..350c9ed5032 100755 --- a/script/update_beats.sh +++ b/script/update_beats.sh @@ -18,6 +18,7 @@ trap "{ set +e;popd 2>/dev/null;set -e;rm -rf ${BASEDIR}/${GIT_CLONE}; }" EXIT git clone https://github.com/elastic/beats.git ${GIT_CLONE} ( cd ${GIT_CLONE} + git fetch --all git checkout ${BEATS_VERSION} )