]> git.ipfire.org Git - thirdparty/git.git/commit
submodule: fix case-folding gitdir filesystem collisions
authorAdrian Ratiu <adrian.ratiu@collabora.com>
Sat, 20 Dec 2025 10:15:26 +0000 (12:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 21 Dec 2025 02:36:01 +0000 (11:36 +0900)
commitc69414808cc0dd39ca9aa379cb00d5317aa5a7e7
tree0e7fdb94c1bbfd86bd3a0b5e68709e81c79f96b6
parent7f8f9c0bbc3db9d0a0371548d3b4a048e6e635f8
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