You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/migrations
zeripath 3d8b5ad5f3
Fix a couple of CommentAsPatch issues. (#14804)
* CutDiffAroundLine makes the incorrect assumption that `---` and `+++` always represent part of the header of a diff.

This PR adds a flag to its parsing to prevent this problem and adds a streaming parsing technique to CutDiffAroundLine using an io.pipe instead of just sending data to an unbounded buffer.

Fix #14711

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Handle unquoted comment patch files

When making comment patches unfortunately the patch does not always quote the filename
This makes the diff --git header ambiguous again.

This PR finally adds handling for ambiguity in to parse patch

Fix #14812

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add in testing for no error

There is no way currently for CutDiffAroundLine in this test to cause an
error however, it should still be tested.

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
..
base Add support to migrate from gogs (#14342) 3 years ago
dump.go Fix repo-restore bug with poster not replaced (#14759) 3 years ago
error.go Add support to migrate from gogs (#14342) 3 years ago
git.go Add support to migrate from gogs (#14342) 3 years ago
gitea_downloader.go Add support to migrate from gogs (#14342) 3 years ago
gitea_downloader_test.go Gitea 2 Gitea migration (#12657) 4 years ago
gitea_uploader.go Fix a couple of CommentAsPatch issues. (#14804) 3 years ago
gitea_uploader_test.go Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244) 4 years ago
github.go Fix github download on migration (#14703) 3 years ago
github_test.go Gitea 2 Gitea migration (#12657) 4 years ago
gitlab.go Add support to migrate from gogs (#14342) 3 years ago
gitlab_test.go Gitea 2 Gitea migration (#12657) 4 years ago
gogs.go Add support to migrate from gogs (#14342) 3 years ago
gogs_test.go Add support to migrate from gogs (#14342) 3 years ago
main_test.go Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 5 years ago
migrate.go Add support to migrate from gogs (#14342) 3 years ago
migrate_test.go Add Allow-/Block-List for Migrate & Mirrors (#13610) 4 years ago
restore.go Fix repo-restore bug with poster not replaced (#14759) 3 years ago
update.go Refactor Cron and merge dashboard tasks (#10745) 4 years ago