From patchwork Tue Jan 15 15:07:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Branchaud X-Patchwork-Id: 10764715 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6AE351580 for ; Tue, 15 Jan 2019 15:07:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B9D62AC4D for ; Tue, 15 Jan 2019 15:07:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4FD6D2AE16; Tue, 15 Jan 2019 15:07:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 401822AC4D for ; Tue, 15 Jan 2019 15:07:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729117AbfAOPHV (ORCPT ); Tue, 15 Jan 2019 10:07:21 -0500 Received: from [192.252.130.194] ([192.252.130.194]:25436 "EHLO cubert.xiplink.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728653AbfAOPHV (ORCPT ); Tue, 15 Jan 2019 10:07:21 -0500 Received: from xiplink.com (rincewind.xiplink.com [10.10.1.32]) by cubert.xiplink.com (Postfix) with ESMTP id 15AB1A2102; Tue, 15 Jan 2019 10:07:19 -0500 (EST) From: Marc Branchaud To: git@vger.kernel.org Cc: Duy Nguyen , Stefan Beller , Jonathan Nieder Subject: [PATCHv2] new-workdir: Never try to recurse into submodules on the initial checkout. Date: Tue, 15 Jan 2019 10:07:19 -0500 Message-Id: <20190115150719.19277-1-marcnarc@xiplink.com> X-Mailer: git-send-email 2.20.1.1.gfb6d716d28 In-Reply-To: <20190114172702.19959-1-marcnarc@xiplink.com> References: <20190114172702.19959-1-marcnarc@xiplink.com> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The new workdir is empty before the checkout, so attempts to recurse into a non-existent submodule directory fail. Signed-off-by: Marc Branchaud --- Changed to use --no-recurse-submodules instead of -c submodule.recurse=false, as Jonathan suggested. M. contrib/workdir/git-new-workdir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/workdir/git-new-workdir b/contrib/workdir/git-new-workdir index 888c34a521..d88765e73f 100755 --- a/contrib/workdir/git-new-workdir +++ b/contrib/workdir/git-new-workdir @@ -102,4 +102,4 @@ trap - $siglist # checkout the branch (either the same as HEAD from the original repository, # or the one that was asked for) -git checkout -f $branch +git checkout --no-recurse-submodules -f $branch