[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v1 04/14] archive-source.sh: Clone the submodules lo
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PATCH v1 04/14] archive-source.sh: Clone the submodules locally |
Date: |
Fri, 25 Jan 2019 14:00:07 +0000 |
From: Philippe Mathieu-Daudé <address@hidden>
We cloned the QEMU repository from the local storage. Since the
submodules are also available there, clone them too. This is
quicker and reduce network use.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
---
scripts/archive-source.sh | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/scripts/archive-source.sh b/scripts/archive-source.sh
index 6eed2a29bd..ce31be67b0 100755
--- a/scripts/archive-source.sh
+++ b/scripts/archive-source.sh
@@ -38,6 +38,10 @@ else
fi
git clone --shared . "$vroot_dir"
test $? -ne 0 && error "failed to clone into '$vroot_dir'"
+for sm in $submodules; do
+ git clone --shared "$sm" "$vroot_dir/$sm"
+ test $? -ne 0 && error "failed to clone submodule $sm"
+done
cd "$vroot_dir"
test $? -ne 0 && error "failed to change into '$vroot_dir'"
@@ -45,11 +49,6 @@ test $? -ne 0 && error "failed to change into '$vroot_dir'"
git checkout $HEAD
test $? -ne 0 && error "failed to checkout $HEAD revision"
-for sm in $submodules; do
- git submodule update --init $sm
- test $? -ne 0 && error "failed to init submodule $sm"
-done
-
if test -n "$submodules"; then
{
git ls-files || error "git ls-files failed"
--
2.17.1
- [Qemu-devel] [PATCH v1 07/14] tests: make docker.py check for persistent configs, (continued)
- [Qemu-devel] [PATCH v1 07/14] tests: make docker.py check for persistent configs, Alex Bennée, 2019/01/25
- [Qemu-devel] [PATCH v1 06/14] tests: make docker.py update use configured binfmt path, Alex Bennée, 2019/01/25
- [Qemu-devel] [PATCH v1 11/14] tests/vm: call make check directly for netbsd/freebsd/ubuntu.i386, Alex Bennée, 2019/01/25
- [Qemu-devel] [PATCH v1 10/14] tests/vm: move images to $HOME/.cache/qemu-vm/images, Alex Bennée, 2019/01/25
- [Qemu-devel] [PATCH v1 05/14] docker: disable Xen on CentOS 7, Alex Bennée, 2019/01/25
- [Qemu-devel] [PATCH v1 09/14] tests: PEP8 cleanup of docker.py, mostly white space, Alex Bennée, 2019/01/25
- [Qemu-devel] [PATCH v1 04/14] archive-source.sh: Clone the submodules locally,
Alex Bennée <=
- [Qemu-devel] [PATCH v1 12/14] tests/vm: add --build-target option, Alex Bennée, 2019/01/25
- [Qemu-devel] [PATCH v1 14/14] scripts/qemu.py: allow arches use KVM for their 32bit cousins, Alex Bennée, 2019/01/25
- [Qemu-devel] [PATCH v1 13/14] tests/vm: expose BUILD_TARGET, TARGET_LIST and EXTRA_CONFIGURE_OPTS, Alex Bennée, 2019/01/25