gitlab_to_gitea
gitlab_to_gitea copied to clipboard
Well done!
Thanks for this great script!
I used it to migrate my Gitlab 15.11.9 instance to Gitea 1.20.5.
FYI: Since I have a reverse proxy which adds SSl, I got the following warning which in the end leads to failure:
migrate.py:54: UserWarning: The base URL in the server response differs from the user-provided base URL (https://git.home.***.ch -> http://gitlab-15.11).
This is usually caused by a misconfigured base URL on your side or a misconfigured external_url on the server side, and can lead to broken pagination and unexpected behavior. If this is intentional, use `keep_base_url=True` when initializing the Gitlab instance to keep the user-provided base URL. (python-gitlab: ***/gitlab/client.py:603)
gl.auth()
Adding keep_base_url=True
to gl = gitlab.Gitlab()
solved the issue and the migration was successful.
You might want to update the readme to show that it also works with newer versions!
I don't use this script any longer but I am still happy to apply new pull requests if some changes are required.