From da59376820dbe18f41c0351b76002d1b5d67b470 Mon Sep 17 00:00:00 2001 From: Zhen Wang <643348094@qq.com> Date: Wed, 28 Aug 2024 09:11:19 +0800 Subject: [PATCH] [GLUTEN-7035][VL] Use first line of `ls-remote`'s output as build's target commit (#7036) Closes #7035 --- ep/build-velox/src/get_velox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ep/build-velox/src/get_velox.sh b/ep/build-velox/src/get_velox.sh index cdcbf50e5c38..003a3790cedf 100755 --- a/ep/build-velox/src/get_velox.sh +++ b/ep/build-velox/src/get_velox.sh @@ -151,7 +151,7 @@ fi VELOX_SOURCE_DIR="${VELOX_HOME}" # checkout code -TARGET_BUILD_COMMIT="$(git ls-remote $VELOX_REPO $VELOX_BRANCH | awk '{print $1;}')" +TARGET_BUILD_COMMIT="$(git ls-remote $VELOX_REPO $VELOX_BRANCH | awk '{print $1;}' | head -n 1)" if [ -d $VELOX_SOURCE_DIR ]; then echo "Velox source folder $VELOX_SOURCE_DIR already exists..." cd $VELOX_SOURCE_DIR