From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.43 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== 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== 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 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 ; Sun, 29 Nov 2026 22:02:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 46F62606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com 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 Received: by mail-yx1-f43.google.com with SMTP id 956f58d0204a3-6798eb0d190so7771220d50.3 for ; Sun, 29 Nov 2026 14:02:55 -0800 (PST) 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=SCXlDdNVfp4fK52bNW2oqiTNptheK8CZ7rsPAudQpfEEby+JCn2h63yjEV154rAr1R oeO9zRNZBP2XMRDnk7swrJgN/cgPV1ASPQA13ZQLUMI9LrFyLBZTMV7WjwYxhznuIo4X AzVG2zFhFjdYi2+mT+EOUVbHAYNR0wwSQ9UOrhHf71PBVY09EMeMVP5SpMZGSpHKygIe mFfwifzPvihqoHKy7tRBSc6vIOs64Qcly3CNi9x6q5Htfn8anQ+eRGpE5s7tQ+CS1OBF 1LAcSJokdeXTkmJ99Wv5T1HIR7sP/Ul752vRwRdT4CRNaofZt21hMbW5rrbzaovHFFDF DNqg== X-Gm-Message-State: APuU4Z/+LdpLpDhMhGEvD6QV2fPZv3pYD7x0g+zVxUmOYPtGzll+5Suw 3rAUq9t97ile+oRqREdpiCzuqEP0PgK1TREianzDbC6FxjTAH2rdSz3qzrC6bEgV X-Gm-Gg: AZFdTZdbZ4LzzjM7s6KESF7yXwTCoa+pdsjiE/qvsII6BwppLH4Q3dfSQ/gZIoC4i39 7JjogtMcL5EryZZ0wVXDMxTYiL12H0m1Ske4oQkRh6GbpJqQCyUCZxkzJk0dezz3GJ+D5w6N1BQ BxyhjwMNc1gLCuGhF2+b8fGmZ//VTawpbETpy9DwfcJFcI/aL++VU9A3olUtdOls/fIyk5NitzN dBiRRgj1sancgKk4U7AEu08cQJvxk/Jbs0p/mqrq1Q5W9YkcE2W+A3kFaa6DRVl0Kouyc7bm7O9 I1eqr29l3rpBL/xCRU61xx92Ru8iBiTkDyaOLJsoL7I13yfP89VDQe1QY51Nqop+39WeJT6mJs8 8TG9LaxoEfmhwxg7DtRJM1MXAY+CR3rpWZSSJ/wtP6qh1AuffpW55SsSshpkAsxAqGVxxL1cMhq dzycEJwMjM9UTVMBxIAPtpBytqMc65bPvM2jzcEnmndJ35MkODcLe9rsrBoNLlqIYrn2CLrO7Uo iF5H/jdD8vpg92hbwcALCVsmbpLr22nL/KMHfL5HVJh0x+3fJpNZaaYLihfICkBrFeXFAxr9tyM 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) 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) Message-Id: From: "Yoichi NAKAYAMA via GitGitGadget" Date: Sun, 29 Nov 2026 22:02:51 +0000 Subject: [PATCH 0/2] submodule: fix handling of unusual submodule names Fcc: Sent Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailing-List: git@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 To: git@vger.kernel.org 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