Article View: linux.kernel.git
Article #4108Re: [PATCH 0/2] submodule: fix handling of unusual submodule names
From: Ben Knoble
Date: Mon, 30 Nov 2026 13:42
Date: Mon, 30 Nov 2026 13:42
32 lines
12005 bytes
12005 bytes
> 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.
Technical Details
Message-ID:
<370F0F71-B529-4970-8F19-97D6E399DAEC@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76666-linux-kernel-git=dewy.ruReferences:
<pull.2340.git.1795989773.gitgitgadget@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76666-linux-kernel-git=dewy.ru
From: ben.knoble@gmail.com (Ben Knoble)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH 0/2] submodule: fix handling of unusual submodule names
Date: Mon, 30 Nov 2026 08:42:20 -0500
Organization: Usenet Network
Message-ID: <370F0F71-B529-4970-8F19-97D6E399DAEC@gmail.com>
References: <pull.2340.git.1795989773.gitgitgadget@gmail.com>
MIME-Version: 1.0 (1.0)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="1436563"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:9WtVmF1pIw/RrC0uJeAMnZFU2rA= sha256:tmKo0btD/cksv18BaUzTe5ZDZEIT+axKCdaTaeGB9GU=
sha1:+5KbAfT05pwXPN0lMpSDeSZ6pqE= sha256:Pgnl8w5xO3GydTK9gmoInT9jEgfFyRCtM3GmM4d+CX4=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 1B280125FF2; Mon, 30 Nov 2026 16:43:00 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 7gmzTDIAst1x;
Mon, 30 Nov 2026 16:42:57 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-76666-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 16245125FF0; Mon, 30 Nov 2026 16:42:48 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 090382774C; Mon, 30 Nov 2026 13:42:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1796046154;
b=yQHYdfXt+cNvU915bmzxz5N5pNjffuESrxc74FREVmGBWN7BojydwhJK+FhdZe9Y5Dwl
fVmxfIstJ+kQLnvNsgLladSaZim94lZhQ9aMKk6h41/LEpT97e72ImOLs3GX94tV8kf81
w0Ec9VPAEocMenDz6oqKq6pB0vTriaZ7HmadXHqf+A298AnSl1TvxYF7zVkaLTl7SFfSQ
8lz9WdcK2ZKBvO3zZaifQbXVJVSlrQ1Ofg3tRdZ0F3ZjlBSnckUmgnThdKk367cvHkr/n
0aUtdkQzSsLJwtsiVBxIjDW4n+4d3A4gvVFZGYAcIU8sGYGd07pHoRv/OVvi86i4eGw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796046154;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:Content-Type:Content-Transfer-Encoding:From:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:Mime-Version:Subject:Date:Message-Id:References:
Cc:In-Reply-To:To:X-Mailer;
bh=OWsZXN5ZIDexySK5G4mrEmyXQuJiGEL9jUilZZoPuF8=;
b=F5IorbEarp6tgMIFbcwL2YQzdK6OSnahKFxdWINHSrSS+1n1bGmxQzD4WTteGGxmXi/U
eRS7EbNZZY6eclEO3KWK6x3eWqH8h8RDz4Ngx1dyXJPpMZiJWpuJlO/E8i9686gX4TVSp
KhnocquS5VLmKJQGpvacQz6DDQWKtfyMDG8Qo3See09+w8UWhW6snWQQfKxtE/uR2WEcK
37O1GVQkgSEeifvTTA7VWb81vwpVZ6ApPZQhFMKYITgM9EKi9Nv5z/rcXzaR5IxCQnjDj
LFef1rN9C8Vu5roL1YpvPwLADFZ1b2n0uYTd5lTtXNlLV9dRmO8iDaVS3ZjwHTXgD4w==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=cDEgVvC0;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 36DF4606A699;
Mon, 30 Nov 2026 13:42:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=cDEgVvC0
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.178
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1796046153;
b=c1HawCf1lgw+lYzULsg3uxjJTE961VlzEVYXoAJ0/hpy0VZne8ovCifCegrIWpldfn8f
CijoyfQdQkmH53eJXyt5RGtT5pUS+8g+a1IxchCKdpaJ0pHRJyrrk4yNQMJpYGKVuA0IZ
IjPJkotnbtdl81p6sFiFWkQqwR7HMgiYdDql89xO+p1jyitNRHaD8RqbzMFdG4tzCJ3DE
mcgxSvG8NT0BMWj0m+PzoGKPPfGbCA77Rc+zAznaZIEUvTCu8KGsTkH7na1+EIfuFuT9j
aK8ZgZq6gJtDOUgdGufc741SGOh6qtnx7v0Q3Ig6Mw16BfKyKz1pb8T76FeUhIKfA9Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796046153;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Content-Type:
Content-Transfer-Encoding:From:Mime-Version:Subject:Date:Message-Id:
References:Cc:In-Reply-To:To:X-Mailer;
bh=OWsZXN5ZIDexySK5G4mrEmyXQuJiGEL9jUilZZoPuF8=;
b=LBPrIw156UZl5ztXMlllID2SQ1rsdiarmmWzCCXq3f5R7Be7xsplj5EwkpfKGg1J2o42
z2+VcV/2hqtizOH/S21gjjIO9dchhcy1ORAv3MvK7aS4En8eL0xbW0nUdgwEOMIA7jAH2
EU+BypEgUSn+9ruGevR5T/1lZUBK5cmGY8MqDh3b2XLkFFEioe8HJOVz/5eZrhsZRDiTz
tWLY1RS3coMIEjW/qEjbo5yOtvJtukBpfCZS5ZRsFKJfKT75ZB9Dfl7tp2u26Pj1FHn8P
z9zKteObBUbKLs6oLrNy4S2Dsvf+8VWoteq7y4rZhwZxMi3B7mqR6pENy+BEnX8Qmnw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=cDEgVvC0;
arc=none smtp.remote-ip=209.85.128.178
X-Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12FCE606A33B
for <git@vger.kernel.org>; Mon, 30 Nov 2026 13:42:32 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 12FCE606A33B
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-8b32daac9d7so56217787b3.0
for <git@vger.kernel.org>; Mon, 30 Nov 2026 05:42:32 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1796046152; x=1796650952; darn=vger.kernel.org;
h=to:in-reply-to:cc:references:message-id:date:subject:mime-version
:from:content-transfer-encoding:content-type:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=OWsZXN5ZIDexySK5G4mrEmyXQuJiGEL9jUilZZoPuF8=;
b=cDEgVvC0O3mOY0NLQRj9D9oylLTWg4WyJ1AK6Z436psf+DIj/6gR8Cvsy4SqCzEBF1
rk0zUi4/ctdZ/5iy42VQw3yUzgl/q4qR5wsMI1pu+uTEaKyfVOwOsVfC3Rg522hQtYx9
q6DSekaK83oSvtytJE2xZfq2RRHPo8mfgGcjKibAUaUPTXBiBNZ/wqx/IWt0J8UlcO0o
c/JDhx1QI4BGuVXfC3TrqvkQZEW5537svtGSNEG9KiolU8zQcD08ElRlQ4cNJ1/p4z32
WAtDbo1PQbjwhzdXJWOSXWn/dEG+/oPAQgAa0lNCwbykRc2AlbycsWx7anhgwRH7yAV1
mMBg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1796046152; x=1796650952;
h=to:in-reply-to:cc:references:message-id:date:subject:mime-version
:from:content-transfer-encoding:content-type:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=OWsZXN5ZIDexySK5G4m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6qqBpcLGNWQJDeVjIkaKhyOPPZ
ytA8EyN93vKxwqe/KFeyV/XjCcIf+kXOnF4Yczajfpg/hzQEwUdXqVcTUxyzgC8vSHWQ13JTdOx
3tbxiNJ5mNakN78l4PuqWr9H039Uj+G3u0auN4ODvlvyT5a86exAItqAurLHZiinLOJGHFkLIX9
aOQA==
X-Received: by 2002:a05:690c:6:b0:8b3:4dd:5fb5 with SMTP id 00721157ae682-8b518f3d09amr129351257b3.27.1796046151135;
Mon, 30 Nov 2026 05:42:31 -0800 (PST)
X-Received: from smtpclient.apple ([2605:a601:9d46:600:cc43:20f0:1348:c0fd])
by smtp.gmail.com with ESMTPSA id 00721157ae682-8b52028c7f5sm130477677b3.12.2026.11.30.05.42.30
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Mon, 30 Nov 2026 05:42:30 -0800 (PST)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-Cc: git@vger.kernel.org, Yoichi NAKAYAMA <yoichi.nakayama@gmail.com>
X-In-Reply-To: <pull.2340.git.1795989773.gitgitgadget@gmail.com>
X-Mailer: iPhone Mail (23D8133)