aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui-shared.c6
1 files changed, 6 insertions, 0 deletions
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);
}