]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
SCRIPTS: build-ssl: clone the quictls branch directly
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 19 Jan 2026 12:41:17 +0000 (13:41 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 19 Jan 2026 13:45:47 +0000 (14:45 +0100)
Allow to clone the quictls branch directly using the value from
QUICTLS_VERSION.

scripts/build-ssl.sh

index f98441b6e9e3b5c43f21903f49648a9141fc45d6..2fc00a24d80eba2008a8b58276bad2c110264c9d 100755 (executable)
@@ -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