gitlab_to_gitea icon indicating copy to clipboard operation
gitlab_to_gitea copied to clipboard

Well done!

Open caco3 opened this issue 1 year ago • 2 comments

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.

caco3 avatar Oct 06 '23 06:10 caco3

You might want to update the readme to show that it also works with newer versions!

caco3 avatar Oct 06 '23 06:10 caco3

I don't use this script any longer but I am still happy to apply new pull requests if some changes are required.

h44z avatar Feb 01 '24 16:02 h44z