From 317af2994bbc73fb971434f006e9eb56d2c99161 Mon Sep 17 00:00:00 2001 From: Genva Date: Mon, 16 Jun 2025 10:16:27 +0200 Subject: [PATCH] Clone only current version tag --- build.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 611d484..53db51c 100755 --- a/build.sh +++ b/build.sh @@ -11,8 +11,7 @@ echo "Building BitBetter for BitWarden version $BW_VERSION" # Prepare Bitwarden repository rm -rf $DIR/server -git clone https://github.com/bitwarden/server.git -git -C $DIR/server checkout tags/v${BW_VERSION} +git clone --branch "v${BW_VERSION}" --depth 1 https://github.com/bitwarden/server.git $DIR/server old_thumbprint=$(openssl x509 -fingerprint -noout -in $DIR/server/src/Core/licensing.cer | cut -d= -f2 | tr -d ':') new_thumbprint=$(openssl x509 -fingerprint -noout -in $DIR/.keys/cert.cert | cut -d= -f2 | tr -d ':') cp $DIR/.keys/cert.cert $DIR/server/src/Core/licensing.cer