Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preserve users if restoring a repository on the same Gitea instance #18604

Merged
merged 2 commits into from
Feb 6, 2022

Commits on Feb 4, 2022

  1. preserve users if restoring a repository on the same Gitea instance

    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>
    Loïc Dachary authored and singuliere committed Feb 4, 2022
    Configuration menu
    Copy the full SHA
    2ef4f3e View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2022

  1. Configuration menu
    Copy the full SHA
    e9d0063 View commit details
    Browse the repository at this point in the history