Skip to content

Commit 99f7ec8

Browse files
Fix doer of rename repo (#11789) (#11794)
fix #11725 Signed-off-by: a1012112796 <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: zeripath <[email protected]>
1 parent a076cb2 commit 99f7ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/repo/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) {
7676
ctx.Repo.GitRepo.Close()
7777
ctx.Repo.GitRepo = nil
7878
}
79-
if err := repo_service.ChangeRepositoryName(ctx.Repo.Owner, repo, newRepoName); err != nil {
79+
if err := repo_service.ChangeRepositoryName(ctx.User, repo, newRepoName); err != nil {
8080
ctx.Data["Err_RepoName"] = true
8181
switch {
8282
case models.IsErrRepoAlreadyExist(err):

0 commit comments

Comments
 (0)