gitea: Wrong URL when importing from GitLab hosted in subdirectory

Gitea v1.13.0-rc2

Note that in the GET request gitlab/ is missing after the domain name.

(not sure if the error message is related to this though)

Migrating from http://my.gitlab.domain/gitlab/user/test.git failed.

GET https://my.gitlab.domain/api/v4/projects/gitlab/user/test: 502 failed to parse unknown error format

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (18 by maintainers)

Commits related to this issue

Most upvoted comments

GL returned:
error: '<nil>'
version: '<nil>'
new base: 'http://DOMAIN/gitlab'
new repoPath: 'patrick/cynkra-test'
GL returned:
error: 'GET https://DOMAIN/api/v4/version: 502 failed to parse unknown error format'
version: 'gitlab.Version{Version:"13.5.3-ee", Revision:"b9d194b6b91"}'break
SUCESS!

BaseURL: 'http://DOMAIN/gitlab'
RepoPath: 'patrick/cynkra-test'

Whom are we spamming? AFAICS all of this contributes to this issue.

Just joined the discord server.

This won’t work, neither time nor permission wise I guess.

Happy to test once its in master then. Thanks for your work!