summaryrefslogtreecommitdiff
path: root/shared.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-09-04 15:27:40 +0000
committerFreya Murphy <freya@freyacat.org>2025-09-04 15:27:40 +0000
commit0909b3bd0b25f31b30a2f6d291ce527455765e98 (patch)
tree22e305c9336be5c16a01f13ce9fbd771e651a051 /shared.c
parentbetter display raw files in tree view (diff)
downloadcgit-0909b3bd0b25f31b30a2f6d291ce527455765e98.tar.gz
cgit-0909b3bd0b25f31b30a2f6d291ce527455765e98.tar.bz2
cgit-0909b3bd0b25f31b30a2f6d291ce527455765e98.zip
repo urls should be case insensitive
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared.c b/shared.c
index 36ee706..5605cf0 100644
--- a/shared.c
+++ b/shared.c
@@ -93,7 +93,7 @@ struct cgit_repo *cgit_get_repoinfo(const char *url)
repo = &cgit_repolist.repos[i];
if (repo->ignore)
continue;
- if (!strcmp(repo->url, url))
+ if (!strcasecmp(repo->url, url))
return repo;
}
return NULL;