[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 for-8.0 2/5] scripts/make-release: Only clone single branches
From: |
Thomas Huth |
Subject: |
[PATCH v2 for-8.0 2/5] scripts/make-release: Only clone single branches to speed up the script |
Date: |
Mon, 28 Nov 2022 10:25:52 +0100 |
Using --single-branch and --depth 1 here helps to speed up the process
a little bit and helps to save some networking bandwidth.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
scripts/make-release | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/scripts/make-release b/scripts/make-release
index 4be9b3b9ce..44a9d86a04 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 \
--
2.31.1
- [PATCH v2 for-8.0 0/5] scripts/make-release: Decrease size of the release tarballs, Thomas Huth, 2022/11/28
- [PATCH v2 for-8.0 1/5] scripts/make-release: Add a simple help text for the script, Thomas Huth, 2022/11/28
- [PATCH v2 for-8.0 2/5] scripts/make-release: Only clone single branches to speed up the script,
Thomas Huth <=
- [PATCH v2 for-8.0 5/5] scripts/make-release: Move roms into separate tarball, Thomas Huth, 2022/11/28
- [PATCH v2 for-8.0 4/5] roms: Add a README file with some basic information, Thomas Huth, 2022/11/28
- [PATCH v2 for-8.0 3/5] scripts/make-release: Remove CI yaml and more git files from the tarball, Thomas Huth, 2022/11/28
- Re: [PATCH v2 for-8.0 0/5] scripts/make-release: Decrease size of the release tarballs, Stefan Hajnoczi, 2022/11/28