diff options
author | 赵智超 <1012112796@qq.com> | 2020-06-07 23:23:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-07 18:23:13 +0300 |
commit | ba8efe354738e0f8234c2e553852e1f0c8c414f9 (patch) | |
tree | 2272955ffcc3462d7238d0a535e390638b17e59a /routers | |
parent | 1cc33c37ffb47ea4a7031f1d1086df40fdfd4bf6 (diff) | |
download | gitea-ba8efe354738e0f8234c2e553852e1f0c8c414f9.tar.gz gitea-ba8efe354738e0f8234c2e553852e1f0c8c414f9.zip |
Fix doer of rename repo (#11789)
fix #11725
Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'routers')
-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 1433bedb3b..635ec41334 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): |