diff options
author | Unknwon <u@gogs.io> | 2015-08-30 01:13:24 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-30 01:13:24 +0800 |
commit | d01f688257b028132fd75fd7200093c97282a97d (patch) | |
tree | 56dbdd78c17aff0de808363acf21420d709716b3 /routers/repo | |
parent | 9b9e5f02901ab457656ee80bf7b27a663db4d73f (diff) | |
download | gitea-d01f688257b028132fd75fd7200093c97282a97d.tar.gz gitea-d01f688257b028132fd75fd7200093c97282a97d.zip |
fix repository count of user is messed up
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/repo.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go index 8cb2db3a5e..1e1c24b865 100644 --- a/routers/repo/repo.go +++ b/routers/repo/repo.go @@ -120,10 +120,6 @@ func CreatePost(ctx *middleware.Context, form auth.CreateRepoForm) { AutoInit: form.AutoInit, }) if err == nil { - // Remember visibility preference. - ctx.User.LastRepoVisibility = repo.IsPrivate - models.UpdateUser(ctx.User) - log.Trace("Repository created: %s/%s", ctxUser.Name, repo.Name) ctx.Redirect(setting.AppSubUrl + "/" + ctxUser.Name + "/" + repo.Name) return @@ -190,10 +186,6 @@ func MigratePost(ctx *middleware.Context, form auth.MigrateRepoForm) { repo, err := models.MigrateRepository(ctxUser, form.RepoName, form.Description, form.Private, form.Mirror, remoteAddr) if err == nil { - // Remember visibility preference. - ctx.User.LastRepoVisibility = repo.IsPrivate - models.UpdateUser(ctx.User) - log.Trace("Repository migrated: %s/%s", ctxUser.Name, form.RepoName) ctx.Redirect(setting.AppSubUrl + "/" + ctxUser.Name + "/" + form.RepoName) return |