From: Thomas Huth <thuth@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>,
Michael Roth <michael.roth@amd.com>,
qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>
Cc: "Daniel P. Berrangé" <berrange@redhat.com>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Richard Henderson" <richard.henderson@linaro.org>
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 [thread overview]
Message-ID: <20221128092555.37102-3-thuth@redhat.com> (raw)
In-Reply-To: <20221128092555.37102-1-thuth@redhat.com>
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
next prev parent reply other threads:[~2022-11-28 9:26 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-28 9:25 [PATCH v2 for-8.0 0/5] scripts/make-release: Decrease size of the release tarballs Thomas Huth
2022-11-28 9:25 ` [PATCH v2 for-8.0 1/5] scripts/make-release: Add a simple help text for the script Thomas Huth
2022-11-28 16:47 ` Alex Bennée
2022-11-28 9:25 ` Thomas Huth [this message]
2022-11-28 16:54 ` [PATCH v2 for-8.0 2/5] scripts/make-release: Only clone single branches to speed up " Alex Bennée
2022-11-28 9:25 ` [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 16:55 ` Alex Bennée
2022-11-28 9:25 ` [PATCH v2 for-8.0 4/5] roms: Add a README file with some basic information Thomas Huth
2022-11-28 16:58 ` Alex Bennée
2022-11-28 9:25 ` [PATCH v2 for-8.0 5/5] scripts/make-release: Move roms into separate tarball Thomas Huth
2022-11-28 16:51 ` Stefan Hajnoczi
2022-11-30 11:10 ` Thomas Huth
2022-11-28 16:58 ` Alex Bennée
2022-11-28 16:53 ` [PATCH v2 for-8.0 0/5] scripts/make-release: Decrease size of the release tarballs Stefan Hajnoczi
2022-11-28 17:04 ` Daniel P. Berrangé
2022-11-28 19:25 ` Paolo Bonzini
2022-11-29 8:12 ` Daniel P. Berrangé
2022-11-29 12:56 ` Paolo Bonzini
2022-11-30 9:39 ` Mark Cave-Ayland
2022-11-30 10:49 ` Thomas Huth
2022-11-30 12:09 ` Daniel P. Berrangé
2022-12-09 8:07 ` Thomas Huth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221128092555.37102-3-thuth@redhat.com \
--to=thuth@redhat.com \
--cc=berrange@redhat.com \
--cc=kraxel@redhat.com \
--cc=michael.roth@amd.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).