SCRIPTS: build-ssl: clone the quictls branch directly

Allow to clone the quictls branch directly using the value from
QUICTLS_VERSION.
This commit is contained in:
William Lallemand 2026-01-19 13:41:17 +01:00
parent b4f64c0abf
commit 818b32addc

View File

@ -196,11 +196,11 @@ build_aws_lc_fips () {
download_quictls () {
if [ ! -d "${BUILDSSL_TMPDIR}/quictls" ]; then
git clone --depth=1 ${QUICTLS_URL} ${BUILDSSL_TMPDIR}/quictls
git clone -b "${QUICTLS_VERSION}" --depth=1 ${QUICTLS_URL} ${BUILDSSL_TMPDIR}/quictls
else
(
cd ${BUILDSSL_TMPDIR}/quictls
git checkout "${QUICTLS_VERSION}"
git checkout "${QUICTLS_VERSION}" || exit 1
git pull
)
fi