git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 0/2] submodule: fix handling of unusual submodule names

From
Ben Knoble <ben.knoble@gmail.com>
Date
Nov 30, 2026, 13:42 UTC
Message-ID
<370F0F71-B529-4970-8F19-97D6E399DAEC@gmail.com>
In-Reply-To
<pull.2340.git.1795989773.gitgitgadget@gmail.com>
Show 24 quoted lines
> 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.

Previous: Yoichi NAKAYAMA via GitGitGadget
Message 4 of 4 in “submodule: fix handling of unusual submodule names”
  1. 0/2 submodule: fix handling of unusual submodule namesYoichi NAKAYAMA via GitGitGadget, Nov 29, 2026
  2. 1/2 submodule deinit: handle regexp metacharacters in namesYoichi NAKAYAMA via GitGitGadget, Nov 29, 2026
  3. 2/2 submodule add: reject "." as submodule nameYoichi NAKAYAMA via GitGitGadget, Nov 29, 2026
  4. Ben KnobleNov 30, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.