Git development
 help / color / mirror / Atom feed
From: "Yoichi NAKAYAMA via GitGitGadget" <gitgitgadget@gmail.com>
To: git@vger.kernel.org
Cc: Yoichi NAKAYAMA <yoichi.nakayama@gmail.com>
Subject: [PATCH 0/2] submodule: fix handling of unusual submodule names
Date: Sun, 29 Nov 2026 22:02:51 +0000	[thread overview]
Message-ID: <pull.2340.git.1795989773.gitgitgadget@gmail.com> (raw)

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

             reply	other threads:[~2026-11-29 22:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 22:02 Yoichi NAKAYAMA via GitGitGadget [this message]
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

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=pull.2340.git.1795989773.gitgitgadget@gmail.com \
    --to=gitgitgadget@gmail.com \
    --cc=git@vger.kernel.org \
    --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