forgejo/services/migrations
varp0n 4a2959b3ec FIX gogs migration if gogs is hosted at a subpath (#3572)
Also add a test for GogsDownloaderFactory.New() to make sure
that the URL of the source repository is parsed correctly.

When the source gogs instance is hosted at a subpath like `https://git.example.com/gogs/<username>/<reponame>` the migration fails.
This PR fixes that.

Co-authored-by: hecker <tomas.hecker@gmail.com>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3572
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: varp0n <tom@gkstn.de>
Co-committed-by: varp0n <tom@gkstn.de>
2024-05-01 16:28:44 +00:00
..
testdata/gitlab [Windows] prevent ? in testdata path 2024-03-15 13:15:46 +01:00
codebase.go
codebase_test.go
common.go
dump.go
error.go
forgejo_downloader.go
forgejo_downloader_test.go
git.go
gitbucket.go Change the default maxPerPage for gitbucket (#30392) 2024-04-15 20:01:36 +02:00
gitea_downloader.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
gitea_downloader_test.go
gitea_uploader.go Include resource state events in Gitlab downloads (#29382) 2024-03-06 12:10:43 +08:00
gitea_uploader_test.go remove util.OptionalBool and related functions (#29513) 2024-03-06 12:10:46 +08:00
github.go
github_test.go
gitlab.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
gitlab_test.go Properly migrate target branch change GitLab comment (#29340) 2024-02-26 22:30:26 +01:00
gogs.go FIX gogs migration if gogs is hosted at a subpath (#3572) 2024-05-01 16:28:44 +00:00
gogs_test.go FIX gogs migration if gogs is hosted at a subpath (#3572) 2024-05-01 16:28:44 +00:00
http_client.go
main_test.go
migrate.go Fix duplicate migrated milestones (#30102) 2024-03-30 07:17:30 +01:00
migrate_test.go
onedev.go
onedev_test.go
restore.go
update.go