Clone/push/pull repo by projectID

I’m currently in the process of migrating a couple of hundred projects to Gitlab from Kalithea, but I’ve now run into a snag. A lot of our repos reference subrepos by IDs instead of paths to make sure they are always found even if the project trees are restructured.
Is there a way to do this in Gitlab? In my googling and testing I’ve found that the gitlab webserver redirects from BASE/projects/:id to BASE/namespace/project. This works for browsing but not with command line git clients. The API also provides translation from id to namespace/name but again the git clients are not aware of this.

Is there an easy solution available? Anything in the works?

Best regards,
Andreas