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

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

From
Yoichi NAKAYAMA via GitGitGadget <gitgitgadget@gmail.com>
Date
Nov 29, 2026, 22:02 UTC
Message-ID
<pull.2340.git.1795989773.gitgitgadget@gmail.com>
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(-)
base-commit: acba8bf9753134d9bde89f94369f775838a8c5fe
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-2340%2Fyoichi%2Fhandle-unusual-submodule-name-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-2340/yoichi/handle-unusual-submodule-name-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/2340
-- 
gitgitgadget
Next: Yoichi NAKAYAMA via GitGitGadget
Message 1 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.