aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2022-11-28 10:25:52 +0100
committerThomas Huth <thuth@redhat.com>2022-12-15 15:02:35 +0100
commitaa4609dcb8788da7958fe8f6bf29ca0ad61ddb8c (patch)
tree83ca4b828b1c7e120114616c70184fa752a295ab /scripts
parent9bd0bcc38579556bf416139f94fae36467d6b77a (diff)
downloadqemu-aa4609dcb8788da7958fe8f6bf29ca0ad61ddb8c.zip
qemu-aa4609dcb8788da7958fe8f6bf29ca0ad61ddb8c.tar.gz
qemu-aa4609dcb8788da7958fe8f6bf29ca0ad61ddb8c.tar.bz2
scripts/make-release: Only clone single branches to speed up the script
Using --single-branch and --depth 1 here helps to speed up the process a little bit and helps to save some networking bandwidth. Message-Id: <20221128092555.37102-3-thuth@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/make-release10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/make-release b/scripts/make-release
index 4be9b3b..44a9d86 100755
--- a/scripts/make-release
+++ b/scripts/make-release
@@ -20,10 +20,12 @@ src="$1"
version="$2"
destination=qemu-${version}
-git clone "${src}" ${destination}
+git clone --single-branch -b "v${version}" -c advice.detachedHead=false \
+ "${src}" ${destination}
+
pushd ${destination}
-git checkout "v${version}"
-git submodule update --init
+
+git submodule update --init --single-branch
(cd roms/seabios && git describe --tags --long --dirty > .version)
(cd roms/skiboot && ./make_version.sh > .version)
# Fetch edk2 submodule's submodules, since it won't have access to them via
@@ -34,7 +36,7 @@ git submodule update --init
# submodule dependencies, so we continue to handle these on a case-by-case
# basis for now.
(cd roms/edk2 && \
- git submodule update --init -- \
+ git submodule update --init --depth 1 -- \
ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 \
BaseTools/Source/C/BrotliCompress/brotli \
CryptoPkg/Library/OpensslLib/openssl \