aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/repo.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-29 17:31:53 +0800
committerUnknwon <joe2010xtmf@163.com>2014-08-29 17:31:53 +0800
commit904bf1a50b021798344f8e124439bdd6a4db9cfc (patch)
treedc9252e24a038787aef9f93eb7cbd14f39044f58 /routers/repo/repo.go
parent88291745747ffb200b55ca62e1054d1d2c4315d3 (diff)
downloadgitea-904bf1a50b021798344f8e124439bdd6a4db9cfc.tar.gz
gitea-904bf1a50b021798344f8e124439bdd6a4db9cfc.zip
Add migrate repo API
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r--routers/repo/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index bbc7cf850f..17f20a0a71 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -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
}