Bundle: Better approach for previous commit

Saves some submodule checkout, which is especially slow
on WIndows for some reason.
This commit is contained in:
2018-08-07 22:16:37 +02:00
parent 30de7ef414
commit f5da4a106c

View File

@@ -244,14 +244,15 @@ GIT_C="${GIT} -C ${SOURCE_DIRECTORY}"
if [ ! -d "${SOURCE_DIRECTORY}" ]; then
echo "Checking out Blender.git..."
${GIT} clone "${GIT_BLENDER_REPOSITORY}" "${SOURCE_DIRECTORY}"
echo "Switching to benchmark branch..."
${GIT_C} checkout ${GIT_BENCHMARK_BRANCH}
echo "Initializing submodules..."
${GIT_C} submodule update --init --recursive
else
echo "Switching to benchmark branch..."
${GIT_C} checkout ${GIT_BENCHMARK_BRANCH}
fi
echo "Switching to benchmark branch..."
${GIT_C} checkout ${GIT_BENCHMARK_BRANCH}
echo "Initializing branch submodules..."
${GIT_C} submodule update --init --recursive
echo "Checking to a latest branch..."
${GIT_C} pull
echo "Updatying submodules to the latest version..."