importing repositories with uppercase characters in name doesn't work as excepted
Closed
importing repositories with uppercase characters in name doesn't work as excepted
Created by: walterra
Summary
Using 5-3-stable running the task bundle exec rake gitlab:import:repos RAILS_ENV=production
fails when the repository to import contains uppercase characters.
If you want to import say /home/git/repositories/root/Example.git
, you end up with a project in gitlab and an additional empty repository /home/git/repositories/root/example.git
(note the lowercase).
Steps to reproduce
- Add a repository like
/home/git/repositories/root/Example.git
- Run
bundle exec rake gitlab:import:repos RAILS_ENV=production
Expected bevahior
Not sure how to handle this. Maybe automatically rename the repository to lowercase before import.
Workaround
a) rename repository to lowercase before import
b) after import you could delete the empty repository example.git
and rename Example.git
to lower case, but be aware that you'll then have to add gitlab's hooks to that repository