From patchwork Fri Jan 25 14:00:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 156589 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp409046jaa; Fri, 25 Jan 2019 06:14:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN5D9mpdi7KmqDNTCZ6VVEwXt/YLNpWvWwNlvK6H+3yEBftQfMM0RidKZVocCHETFcbmVQ1q X-Received: by 2002:a1c:cbcb:: with SMTP id b194mr6573513wmg.64.1548425692100; Fri, 25 Jan 2019 06:14:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548425692; cv=none; d=google.com; s=arc-20160816; b=OAMVA0L7HGktBtlMFKXimjcmU6+xmzX065nn1NnRxTnhg90InI5bTKPKFXpg3AOJ8P N5eknZUARuSFF2gl3SToPdQlKEzsADpshbahSlOktyPAI84iVIisJBc7zYsZIFH2ZpCz 9PvTv3pqkHXNWb/TQHzJUzcx93o25DX6Zk4Th71FyWlvRqDevdauQNg8/wGdZKsiYH0C 81PzM9qCmvXZEeezroBLH1dt7yNpW8mR9DeHsmd3ySewny7Nlu9lQfb9q6FKlvt/JfJ4 DdhQmLusCk+xCrKrVVp7aD0OqtFy+TdGkipH3i41MgQ1c6iLTPdTHvFSFtY84L+ieGBp CI3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=E3PWT3vazvIE+W4glo9Q8IW64T+hdRvwUIylMnxBvdk=; b=B7f7Jh5MNz2MqE+t7k/rrCMsJ9k2E7vlRphjuA8Wc9sZ1DCqNgBcTDGwUNZ0Coc4UP C18qRic2r+rkUXu/Vp6yfmy64BA5SxA6FRdkvdeIc3p5L5rdYv4Q8QmooRVDvIbvTq83 jT2AKzZMJlESf2sCGg3gWqcik8Ha7PHHvfzWOfSxUhh+AltciTg04DuUrL+TXmQvFE7I CFPpQ5JPA9WHtYqfpC4doSaQ00i5o/yf5gC72beQOHB7EOz7otzrwyqPghwLvB0r+qAy sHX0U+yrxSKrJE09UEtGQuGid8Mibk536q+lRo0J7LG1Wec/WMPJWJ5M7uoaJBaaOSTm T45Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="WE/ExaW3"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t130si41554766wmf.55.2019.01.25.06.14.51 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 Jan 2019 06:14:52 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="WE/ExaW3"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:45355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gn2Fu-0005yj-QE for patch@linaro.org; Fri, 25 Jan 2019 09:14:50 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gn22A-0003c5-6p for qemu-devel@nongnu.org; Fri, 25 Jan 2019 09:00:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gn221-0000gc-VI for qemu-devel@nongnu.org; Fri, 25 Jan 2019 09:00:37 -0500 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:51953) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gn21x-0000Xy-U9 for qemu-devel@nongnu.org; Fri, 25 Jan 2019 09:00:29 -0500 Received: by mail-wm1-x343.google.com with SMTP id b11so6892049wmj.1 for ; Fri, 25 Jan 2019 06:00:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=E3PWT3vazvIE+W4glo9Q8IW64T+hdRvwUIylMnxBvdk=; b=WE/ExaW36AVRsx30/1FG04DV8ip8URjLGfd37ZL68r1E5TgawwCgnDSMO+uueSQf/B 1ABFxPWWcX8OorgKAMVSzHiZGO/Kg617KeVYFeuHWzl+UX7MJGh7YGquAHN2A1WmD2LG nb4VhccjPhaBUsaGLnRyFI1dnrwE9yod/8AK8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=E3PWT3vazvIE+W4glo9Q8IW64T+hdRvwUIylMnxBvdk=; b=F35AiXm7oDCDVFSZjVRtXXeBpz/S/BhaiNlfQm3Mo5bAgjkFu0z4CNkIJKg5p12Pt4 VUd0VKCMhqbJjkf5P8qt2iNKKfcDSi0HP3lDoKoo/9zooaKvQofB2CN9eUWMdoTF/dGJ xkT9YLclEoRaPI8/m43DEq5Ln7HxnIbH2sJ+Ot55cFS7n4Z/U5Io8DZh41CzL9cPbkT2 OaaD8458uyCm/OHq8iGBtAkgfdRcWJje7RtsQvxjN4DQUwabm6KDd/WKhcsePFoH5wmS iXXuwutqmN6fwvRKwB/PR9NplerOynzRCy9tqtKlBgGAfMs9z4FDL5ceiOWCHQT2xDQS i5ZQ== X-Gm-Message-State: AJcUukeF84a6RCKk15jzPAN/FK67Q3rbi5m+dRit8am2jFYRSl8hw/Iz BsIZbpxNGZHijg9TSVs3d8Z7FMuaUy0= X-Received: by 2002:a1c:6e01:: with SMTP id j1mr6863621wmc.103.1548424822027; Fri, 25 Jan 2019 06:00:22 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id n15sm83461888wrt.21.2019.01.25.06.00.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Jan 2019 06:00:19 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id E27303E0625; Fri, 25 Jan 2019 14:00:17 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 25 Jan 2019 14:00:07 +0000 Message-Id: <20190125140017.6092-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190125140017.6092-1-alex.bennee@linaro.org> References: <20190125140017.6092-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::343 Subject: [Qemu-devel] [PATCH v1 04/14] archive-source.sh: Clone the submodules locally X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé 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é Signed-off-by: Alex Bennée --- scripts/archive-source.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) -- 2.17.1 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"