Support remapping of git repos
Customer has legacy git repositories that have no namespace, but since GitLab requires a namespace, they need some way to map their old projects to the new GitLab URL. They have thousands of repositories that need to retain their original remote URLs due to automation.
They are going to work around this by using gitolite, modifying gitlab-shell, and hooking into
SSH_ORIGINAL_COMMAND environment variable to remap the clone. For example, if we need to remap:
project.git => namespace/project.git
The clone request for
project.git will appear as
git-upload-pack project.git in
SSH_ORIGINAL_COMMAND. They'll remap this to
To avoid having to maintain this, we could support some sort of repository mapping that would automatically do this.