diff options
Diffstat (limited to 'ui-shared.c')
| -rw-r--r-- | ui-shared.c | 6 |
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); } |
