From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 7655D1F8C6 for ; Fri, 13 Aug 2021 19:53:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234052AbhHMTxl (ORCPT ); Fri, 13 Aug 2021 15:53:41 -0400 Received: from pb-smtp1.pobox.com ([64.147.108.70]:62338 "EHLO pb-smtp1.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234259AbhHMTxe (ORCPT ); Fri, 13 Aug 2021 15:53:34 -0400 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 3B274DF620; Fri, 13 Aug 2021 15:53:04 -0400 (EDT) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=XtywFYG7V1OYg3jW/4QFnRZnWA7XDKFRXSLj6A TcfZY=; b=aMc2szRCZVovOopMz09eRlDgOtxfS+VqjZQjPUZeN0XbsIOrfv7c9z Qou1IIguodawXrGFESdWxIiP942/eWKi5QMcYtFlBgfC91I0uHNGpfpCjLuUQWn6 T8Z7ijhy2pyiik1TrUaT3KpnOd68AzTONO4uq/19YK1Da16Zvm5tQ= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id C3F38DF61F; Fri, 13 Aug 2021 15:53:03 -0400 (EDT) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [34.74.3.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 4D422DF618; Fri, 13 Aug 2021 15:53:02 -0400 (EDT) (envelope-from junio@pobox.com) From: Junio C Hamano To: Mahi Kolla Cc: Philippe Blain , Emily Shaffer , Mahi Kolla via GitGitGadget , git@vger.kernel.org Subject: Re: [PATCH v5] clone: set submodule.recurse=true if user enables feature.experimental flag References: Date: Fri, 13 Aug 2021 12:53:00 -0700 In-Reply-To: (Mahi Kolla's message of "Thu, 12 Aug 2021 21:12:15 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 1167D188-FC70-11EB-95F2-8B3BC6D8090B-77302942!pb-smtp1.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Mahi Kolla writes: > Unfortunately, the submodule.recurse variable can't be used as the > opt-in flag because this would cause commands to run recursively even > if developers don't have submodules in their project (aka don't run > git clone --recurse-submodules). If you cloned without recurse-submodules and lack submodules, wouldn't it be a no-op to have submodule.recurse set to true, so it would not hurt anyway? IOW, that may already solve the original problem you wanted to solve---those who want their submodules recursively descended into by default can just set submodule.recurse to true (in ~/.gitconfig presumably) and after "git clone" with --recurse-submodules they will get what they want, no? Am I missing something obvious? Thanks.