]> git.ipfire.org Git - thirdparty/git.git/commit
submodule: fix case-folding gitdir filesystem collisions
authorAdrian Ratiu <adrian.ratiu@collabora.com>
Mon, 12 Jan 2026 18:46:30 +0000 (20:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jan 2026 19:56:56 +0000 (11:56 -0800)
commit1685bba838ace8b4e325616ab914a6b01f18547f
tree01a378dc363fc58f03a7564a9b633bfdabe81eda
parent920fbe4d4ee8d4e191d33dde05a16ee0e74bdd44
submodule: fix case-folding gitdir filesystem collisions

Add a new check when extension.submodulePathConfig is enabled, to
detect and prevent case-folding filesystem colisions. When this
new check is triggered, a stricter casefolding aware URI encoding
is used to percent-encode uppercase characters.

By using this check/retry mechanism the uppercase encoding is
only applied when necessary, so case-sensitive filesystems are
not affected.

Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
submodule.c
t/t7425-submodule-gitdir-path-extension.sh
url.c
url.h