Git development
 help / color / mirror / Atom feed
* [PATCH 0/2] submodule: fix handling of unusual submodule names
@ 2026-11-29 22:02 Yoichi NAKAYAMA via GitGitGadget
  2026-11-29 22:02 ` [PATCH 1/2] submodule deinit: handle regexp metacharacters in names Yoichi NAKAYAMA via GitGitGadget
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Yoichi NAKAYAMA via GitGitGadget @ 2026-11-29 22:02 UTC (permalink / raw)
  To: git; +Cc: Yoichi NAKAYAMA

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-30 13:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 0/2] submodule: fix handling of unusual submodule names Ben Knoble

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox