GitHub import page should use case insensitive namespaces (and names)
Summary
I recently imported repositories from GitHub on GitLab.com. My username at that time was Pawamoy
. Today I changed it to pawamoy
(lower-case). It has no side-effects because GitHub usernames / org names are case-insensitive (https://github.com/GITHUB
is not even a redirect to https://github.com/github
, it's two URLs for the same page).
Now if I go back to the GitHub import page on GitLab.com, all my repositories are duplicated: Pawamoy
ones in green (imported) and duplicated pawamoy
ones in grey. But really they are the same and should be considered the same, and appear only once.
Steps to reproduce
- Create a GitHub user with one or many capital letters in the name
- Create a repo
- Connect this account on GitLab.com
- Import your project from it
- Now change your GitHub username to lowercase
- Go back to import page on GitLab.com
What is the current bug behavior?
GitHub repositories appear twice or more because of case-sensitivity.
What is the expected correct behavior?
GitHub repositories should appear only once when namespace and name are case-insensitively equal.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com