Article View: linux.kernel.git
Article #4088[PATCH 0/2] submodule: fix handling of unusual submodule names
From: "Yoichi NAKAYAMA via GitGitGadge...
Date: Sun, 29 Nov 2026 22:02
Date: Sun, 29 Nov 2026 22:02
31 lines
11608 bytes
11608 bytes
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
Technical Details
Message-ID:
<pull.2340.git.1795989773.gitgitgadget@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76643-linux-kernel-git=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76643-linux-kernel-git=dewy.ru
From: gitgitgadget@gmail.com ("Yoichi NAKAYAMA via GitGitGadget")
Newsgroups: linux.kernel.git
Subject: [PATCH 0/2] submodule: fix handling of unusual submodule names
Date: Sun, 29 Nov 2026 22:02:51 +0000
Organization: Usenet Network
Message-ID: <pull.2340.git.1795989773.gitgitgadget@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1271458"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:9YgSCa2va+itHZYzmgU+1n2PTJI= sha256:ywaQXVswAi//FLoEQmQ5pzYDTPsJyty3V/xJftN9Aqs=
sha1:31icX28u2vR8B+bcLdWNreTlQsY= sha256:WlXoZG7HP5hlZ2jhwuEJ0Uk+/YQcjTMjX8Egvrmm38c=
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 8CF07125FAF; Mon, 30 Nov 2026 01:03:12 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.948
X-Spam-Status: No, score=-1.948 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, 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, URIBL_BLOCKED=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 3KetTwdD8UnI;
Mon, 30 Nov 2026 01:03:08 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76643-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id BB61C125FAB; Mon, 30 Nov 2026 01:02:58 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 19F20231EC; Sun, 29 Nov 2026 22:02:57 +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=1795989776;
b=4/ryae378+SuguWL4dvgSXscVqOc9rRaUUG/MqTGlpt6XKBdZhl3CLPJWwSEYyeSg9zz
OVmBeJU9Ov7mOC708PMWXdsHbKZgMoWjVugK5AALus5b5Us77prGjbwGZF5SKqnk4vDQa
cLMilQ5isdehx38DgU+rGSoVjEnC9GvUv3y38ZjsdKWrJbQ/jtUmoi5bINZnm91VP8xat
OzSq/K1vLX8GwwOlqYFdj1fr9hg0XdxvvxyoADKvpUr8fo+WCg5t/dHhebUIAfqFO9kPt
+RYyrafkoHtW449G0eQquwlCnA4K2kwYjR1k8ep5U6XIarxuvqvjA7BMKT4S9ekwUjw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795989776;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:Message-Id:From:Date:Subject:Fcc:Content-Type:
Content-Transfer-Encoding:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:To:
Cc;
bh=us6h6obf7CCYGOEz46Z14/ZyjejUmm4nfqHksRtLbMg=;
b=vMaLGvWIviAO+FsvTdROTtMzclCXgrd/fcOAmCOQUn1/Gd2saNMPlp4qcKot17hsgRQl
NR0OXVc/17MtyU9gh/HPJJBiVQa+GSeMYabHOqj2EamhNhCk88uAcd+dNH0pOgOXPt5l0
FKp0sA5TZ3fihH3dTPpti/CvbCZreTMcA/69ztt/k9MZXm76n/v6+xyk5iXuCgnibo1kX
GmQTNXmL/cHcFoVgOz7YwFyOXiiUYBD7S0TRPRsiABqwdcxpZsqMl2195WQdnWn+mSb3d
rz2JRnC7NFLazCuAn0GrTc8Wih06zERKorjxDUuwf0piJnZGaSNuZO9WmjWzKk8RNBg==
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=ZDFraCrw;
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 78D31606A32E;
Sun, 29 Nov 2026 22:02:56 +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=ZDFraCrw
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.43
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795989775;
b=co/4AekndJB8Twy/5hSsacNt1x2NNtJDTi5+UGrVvZySwq5cjdSajxug3Kz5O3G5i8tu
xI/p3z3LKrvwTk+hjmRTSoiCTph+MdjOpzFtrylipCqExHGibjBfLh3Cmtg81Kf3TSwxp
ZdYS6HCF+Dqv065XBkZkvagmPcAV55M5rI8MW1Z1XPs2YrHviv9d7apBvQi6CcXehr34g
vrNtGjjELWxvtEoGotYHKfNWBeIny1PXiARjsZA0y84RJ5QdvAZvXdD1HoeZWziF6rUXR
PMYQwm0WmZp6vm7YLFkYIvU8i2zPtn6YlfpItgspSZkQGiYeu7Iw6T8jOt46ZsxFiIw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795989775;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Message-Id:From:Date:
Subject:Fcc:Content-Type:Content-Transfer-Encoding:MIME-Version:To:
Cc;
bh=us6h6obf7CCYGOEz46Z14/ZyjejUmm4nfqHksRtLbMg=;
b=IDdzE/kaG4w+V57z4+DOJE4SW6ZfV/lu+iPSguyJ1+2eg0AFZfdrZMu645Y5/2iFnRss
D7H0wyMD7CzGGofzT9C0L2hwYe495GQApiGMMYNqUCuU1lsQRNOpMvHuyoS9dEJCKQ8lm
iM+7ZYm51WSQDIgHualBAQWahSCb878jYDVvrHjmKh9BFKSGrarJi6fNiAroIpfHG9y8Q
Q0PNWuYXpSCuLL5C1oO2TKYXFjqSyZwEIs7kRbTyhlOgDH+lFazsWsAzUoodfPJtFeVcD
nTtsm2fb22Pr6DlWOXLk//mNnnL3a4Ep544F+uD0WjDXhPliVI4k9d8QQhL7ttGrg+w==
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=ZDFraCrw;
arc=none smtp.remote-ip=74.125.224.43
X-Received: from mail-yx1-f43.google.com (mail-yx1-f43.google.com [74.125.224.43])
(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 46F62606A31C
for <git@vger.kernel.org>; Sun, 29 Nov 2026 22:02:55 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 46F62606A31C
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-yx1-f43.google.com with SMTP id 956f58d0204a3-6798eb0d190so7771220d50.3
for <git@vger.kernel.org>; Sun, 29 Nov 2026 14:02:55 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795989774; x=1796594574; darn=vger.kernel.org;
h=cc:to:mime-version:content-transfer-encoding:content-type:fcc
:subject:date:from:message-id:from:to:cc:subject:date:message-id
:reply-to:content-type;
bh=us6h6obf7CCYGOEz46Z14/ZyjejUmm4nfqHksRtLbMg=;
b=ZDFraCrwHKjl/uneBbIPBHQPPeG6TFuoxC4NwqXK8/Iaic7bg38AF7BnQFxZI9dNaA
uRvcoOW9fBbZ1R4EhR7vkul9hr3rGtTFl6pWqXbth4kyf/x2Tk/QFGJLXdcEJ2L8JIYd
ZWGcSOKrSads/0jowjFECKy9PzcAN/P0qDWIy814tN7K0ViSfoFQqRtiJcYIoZQySIlY
SMzCDYQgnfiDlS899k56m2Ww+c1Y1prbM146PQStaxch6s1PSKNrUrxEmFzKOTnfKBLN
aSfD2B6sT2nqWC7/REs4Z3JchXZaSwXkhfQ4YZoy1KOmLeXka9CC26TP2HbDCnE2zpoj
/5CQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795989774; x=1796594574;
h=cc:to:mime-version:content-transfer-encoding:content-type:fcc
:subject:date:from:message-id:x-gm-gg:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=us6h6obf7CCYGOEz46Z14/ZyjejUmm4nfqHksRtLbMg=;
b=SCX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kBrFeXFAxr9tyM
4uloOkQ5jFz70ZCSHyQdOtau5VCXmDE=
X-Received: by 2002:a53:d006:0:b0:679:992e:3ac2 with SMTP id 956f58d0204a3-67df43f7eb1mr11195402d50.40.1795989774239;
Sun, 29 Nov 2026 14:02:54 -0800 (PST)
X-Received: from [127.0.0.1] ([20.49.62.214])
by smtp.gmail.com with ESMTPSA id 6a1803df08f44-92134bf848dsm280068366d6.44.2026.11.29.14.02.53
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sun, 29 Nov 2026 14:02:53 -0800 (PST)
X-Fcc: Sent
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: Yoichi NAKAYAMA <yoichi.nakayama@gmail.com>