Git development
 help / color / mirror / Atom feed
From: Ben Knoble <ben.knoble@gmail.com>
To: Yoichi NAKAYAMA via GitGitGadget <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org, Yoichi NAKAYAMA <yoichi.nakayama@gmail.com>
Subject: Re: [PATCH 0/2] submodule: fix handling of unusual submodule names
Date: Mon, 30 Nov 2026 08:42:20 -0500	[thread overview]
Message-ID: <370F0F71-B529-4970-8F19-97D6E399DAEC@gmail.com> (raw)
In-Reply-To: <pull.2340.git.1795989773.gitgitgadget@gmail.com>


> Le 29 nov. 2026 à 17:02, Yoichi NAKAYAMA via GitGitGadget <gitgitgadget@gmail.com> a écrit :
> 
> This series fixes issues with unusual submodule names.
> 
> The first patch fixes 'git submodule deinit' failing to remove the
> configuration section for submodules whose names contain regexp
> metacharacters.
> 
> The second patch rejects "." as a submodule name in 'git submodule add'.
> This avoids a confusing error and prevents an invalid submodule...gitdir
> entry from being written to the configuration when
> extensions.submodulePathConfig is enabled.
> 
> * [1/2] submodule deinit: handle regexp metacharacters in names
> * [2/2] submodule add: reject "." as submodule name
> 
> Yoichi NAKAYAMA (2):
>  submodule deinit: handle regexp metacharacters in names
>  submodule add: reject "." as submodule name
> 
> builtin/submodule--helper.c | 26 +++++++++++++++++++++++---
> submodule-config.c          |  4 ++--
> t/t7400-submodule-basic.sh  | 28 ++++++++++++++++++++++++++++
> 3 files changed, 53 insertions(+), 5 deletions(-)

I gave this series a quick read, and the comments + code seem
like the right direction to me. A more detailed review is probably warranted,
but I figured a positive ack was better than nothing. 

      parent reply	other threads:[~2026-11-30 13:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 22:02 [PATCH 0/2] submodule: fix handling of unusual submodule names Yoichi NAKAYAMA via GitGitGadget
2026-11-29 22:02 ` [PATCH 1/2] submodule deinit: handle regexp metacharacters in names Yoichi NAKAYAMA via GitGitGadget
2026-11-29 22:02 ` [PATCH 2/2] submodule add: reject "." as submodule name Yoichi NAKAYAMA via GitGitGadget
2026-11-30 13:42 ` Ben Knoble [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=370F0F71-B529-4970-8F19-97D6E399DAEC@gmail.com \
    --to=ben.knoble@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitgitgadget@gmail.com \
    --cc=yoichi.nakayama@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox