summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
author赵智超 <1012112796@qq.com>2020-06-07 23:23:13 +0800
committerGitHub <noreply@github.com>2020-06-07 18:23:13 +0300
commitba8efe354738e0f8234c2e553852e1f0c8c414f9 (patch)
tree2272955ffcc3462d7238d0a535e390638b17e59a /routers
parent1cc33c37ffb47ea4a7031f1d1086df40fdfd4bf6 (diff)
downloadgitea-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.go2
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):