From e91a9108868ff9ea6de1a33ef459971093249a8d Mon Sep 17 00:00:00 2001 From: saturneric Date: Sat, 8 Nov 2025 12:59:52 +0000 Subject: fix(ui): normalize clone URLs to lowercase * Convert generated clone URLs to lowercase to improve compatibility with case-insensitive filesystems and protocols. * Prevent issues caused by inconsistent URL casing in downstream tools. --- ui-shared.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ui-shared.c') diff --git a/ui-shared.c b/ui-shared.c index 7c5a19c..4e39938 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -922,6 +922,12 @@ static void add_clone_urls(void (*fn)(const char *), char *txt, char *suffix) continue; if (suffix && *suffix) strbuf_addf(url_list[i], "/%s", suffix); + + /* Normalize to lowercase for the benefit of case-insensitive + * filesystems and protocols. */ + for (char *p = url_list[i]->buf; *p; p++) + *p = tolower((unsigned char)*p); + fn(url_list[i]->buf); } -- cgit