gitea/services/migrations
Lunny Xiao b79c30435f
Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294)
Now we can get object format name from git command line or from the
database repository table. Assume the column is right, we don't need to
read from git command line every time.

This also fixed a possible bug that the object format is wrong when
migrating a sha256 repository from external.

<img width="658" alt="image"
src="https://github.com/go-gitea/gitea/assets/81045/6e9a9dcf-13bf-4267-928b-6bf2c2560423">
2024-02-24 06:55:19 +00:00
..
codebase_test.go
codebase.go
common.go Adjust object format interface (#28469) 2023-12-17 11:56:08 +00:00
dump.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
error.go Bump google/go-github to v57 (#28514) 2023-12-18 15:42:04 -06:00
git.go
gitbucket.go
gitea_downloader_test.go
gitea_downloader.go Fix DownloadFunc when migrating releases (#27887) 2023-11-03 15:56:53 +08:00
gitea_uploader_test.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
gitea_uploader.go Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-24 06:55:19 +00:00
github_test.go
github.go Bump google/go-github to v57 (#28514) 2023-12-18 15:42:04 -06:00
gitlab_test.go Properly migrate automatic merge GitLab comments (#27873) 2024-02-22 07:29:03 +00:00
gitlab.go Properly migrate automatic merge GitLab comments (#27873) 2024-02-22 07:29:03 +00:00
gogs_test.go
gogs.go
http_client.go
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
migrate_test.go
migrate.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
onedev_test.go
onedev.go
restore.go
update.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00