forgejo/services
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
..
actions
agit
asymkey
attachment
auth
automerge
context
contexttest
convert
cron
doctor
externalaccount
feed
forgejo
forms
gitdiff
indexer
issue
lfs
mailer
markup
migrations
mirror Remove unused parameter for some functions in services/mirror (#30724) 2024-04-28 15:39:01 +02:00
notify
org
packages
pull
release
remote
repository
secrets
task
uinotification
user
webhook
wiki