diff options
author | 赵智超 <1012112796@qq.com> | 2020-06-08 00:55:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-07 19:55:50 +0300 |
commit | 99f7ec8f451e3556ad3549287b078dfb358df3ec (patch) | |
tree | f09016a8f84bdf20716da530f3db9c8016fe8cd5 | |
parent | a076cb2a4c2f1a71f9d6bc87696f48a035b102ac (diff) | |
download | gitea-99f7ec8f451e3556ad3549287b078dfb358df3ec.tar.gz gitea-99f7ec8f451e3556ad3549287b078dfb358df3ec.zip |
Fix doer of rename repo (#11789) (#11794)
fix #11725
Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
-rw-r--r-- | routers/repo/setting.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go index dff13ff5b3..8622fd4698 100644 --- a/routers/repo/setting.go +++ b/routers/repo/setting.go @@ -76,7 +76,7 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) { ctx.Repo.GitRepo.Close() ctx.Repo.GitRepo = nil } - if err := repo_service.ChangeRepositoryName(ctx.Repo.Owner, repo, newRepoName); err != nil { + if err := repo_service.ChangeRepositoryName(ctx.User, repo, newRepoName); err != nil { ctx.Data["Err_RepoName"] = true switch { case models.IsErrRepoAlreadyExist(err): |