mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-24 11:09:44 +08: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> |
||
---|---|---|
.. | ||
avatar.go | ||
email_address_test.go | ||
email_address.go | ||
error.go | ||
external_login_user.go | ||
follow_test.go | ||
follow.go | ||
list.go | ||
main_test.go | ||
openid_test.go | ||
openid.go | ||
redirect_test.go | ||
redirect.go | ||
search.go | ||
setting_keys.go | ||
setting_test.go | ||
setting.go | ||
user_test.go | ||
user.go |