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: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id D7D361F910 for ; Sun, 27 Nov 2022 23:03:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229607AbiK0XDE convert rfc822-to-8bit (ORCPT ); Sun, 27 Nov 2022 18:03:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbiK0XDD (ORCPT ); Sun, 27 Nov 2022 18:03:03 -0500 X-Greylist: delayed 545 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 27 Nov 2022 15:02:58 PST Received: from rincon.dynax.at (rincon.dynax.at [62.171.155.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5F49D118 for ; Sun, 27 Nov 2022 15:02:58 -0800 (PST) Received: from smtpclient.apple (62-178-42-31.cable.dynamic.surfer.at [62.178.42.31]) (Authenticated sender: hagen) by rincon.dynax.at (Postfix) with ESMTPSA id 07B4F4BA43 for ; Sun, 27 Nov 2022 23:53:50 +0100 (CET) From: "signal@dynax.at" Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: =?utf-8?Q?making_use_of_=24sm=5Fpath_=40_git_submodule_foreach_?= =?utf-8?Q?=E2=80=94recursive?= Message-Id: <70ED2ECF-DAF1-4CCB-9E05-2599211F3569@dynax.at> Date: Sun, 27 Nov 2022 23:53:50 +0100 To: git@vger.kernel.org X-Mailer: Apple Mail (2.3696.120.41.1.1) Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Hi, when using git submodule foreach —recursive [..] $sm_path contains only the relative part of the latest recursion. Since the command has no generic way of knowing from which recursion level it is executed any $sm_path of deeper recursion level is useless unless there is a way for the command to find out from which recursion it is called. I suggest $sm_path should be extended to be relative to the repo from where the submodule recursion started or another variable should contain the recursive part. Viele Grüße/Cheers, Hagen.