mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-16 10:28:24 -07:00
8bd89ca294
When calling DumpRepository and RestoreRepository on the same Gitea instance, the users are preserved: all labels, issues etc. belong to the external user who is, in this particular case, the local user. Dead code verifying g.gitServiceType.Name() == "" (i.e. plain git) is removed. The function is never called because the plain git downloader does not migrate anything that is associated to a user, by definition. Errors returned by GetUserIDByExternalUserID are no longer ignored. The userMap is used when the external user is not kown, which is the most common case. It was only used when the external user exists which happens less often and, as a result, every occurence of an unknown external user required a SQL query. Signed-off-by: Loïc Dachary <loic@dachary.org> Co-authored-by: Loïc Dachary <loic@dachary.org> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> |
||
---|---|---|
.. | ||
codebase_test.go | ||
codebase.go | ||
dump.go | ||
error.go | ||
git.go | ||
gitbucket.go | ||
gitea_downloader_test.go | ||
gitea_downloader.go | ||
gitea_uploader_test.go | ||
gitea_uploader.go | ||
github_test.go | ||
github.go | ||
gitlab_test.go | ||
gitlab.go | ||
gogs_test.go | ||
gogs.go | ||
http_client.go | ||
main_test.go | ||
migrate_test.go | ||
migrate.go | ||
onedev_test.go | ||
onedev.go | ||
restore.go | ||
update.go |