Migrating git repos to OpenDev

Adam Spiers aspiers at suse.com
Tue Apr 23 11:37:11 UTC 2019

Jeremy Stanley <fungi at yuggoth.org> wrote:
>On 2019-04-21 20:50:16 -0400 (-0400), Doug Hellmann wrote:
>> So does that mean that old git:// URLs in remotes will need to be
>> updated in local copies?
>Yes, Gitea doesn't support traditional Git protocol, only Git over
>HTTP/HTTPS. And even if it had, there's no built-in redirect
>functionality with that protocol anyway.
>> If I change the URL for the origin remote to
>> https://opendev.org/openstack/releases it works fine. Before I do that
>> in all of my sandboxes, do I need to, or are those old URLs expected to
>> work?
>Simply switching the git:// to https:// (or http://) should work,
>courtesy of the redirect sites we've built for git.openstack.org and

One quick and easy way to achieve that is:

git config --global url.https://git.openstack.org/.insteadof git://git.openstack.org/

More information about the openstack-discuss mailing list