gitea: Fix API URL when "owner/project" is prefixed in origin URL path
Some gitea origins can have non standard URLs in the form below: (scheme)://(netloc)/(prefix)/(owner)/(project). Previous loader implementation could not correctly compute API URLs from such origin URLs so ensure it can. Related to swh/infra/ci-cd/swh-charts#3.
Showing
- swh/loader/metadata/gitea.py 5 additions, 4 deletionsswh/loader/metadata/gitea.py
- swh/loader/metadata/tests/data/https_git.osgeo.org/gitea_api_v1_repos_postgis_postgis-workshops 88 additions, 0 deletions...it.osgeo.org/gitea_api_v1_repos_postgis_postgis-workshops
- swh/loader/metadata/tests/test_gitea.py 25 additions, 1 deletionswh/loader/metadata/tests/test_gitea.py
Loading
Please register or sign in to comment