1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add migrate repo API

This commit is contained in:
Unknwon
2014-08-29 17:31:53 +08:00
parent 8829174574
commit 904bf1a50b
3 changed files with 39 additions and 40 deletions

View File

@@ -145,7 +145,7 @@ func MigratePost(ctx *middleware.Context, form auth.MigrateRepoForm) {
// Not equal means current user is an organization.
if form.Uid != ctx.User.Id {
org, err := models.GetUserById(form.Uid)
if err != nil && err != models.ErrUserNotExist {
if err != nil {
ctx.Handle(500, "GetUserById", err)
return
}