Skip to content

Commit

Permalink
Fix doer of rename repo (go-gitea#11789)
Browse files Browse the repository at this point in the history
fix go-gitea#11725

Signed-off-by: a1012112796 <[email protected]>

Co-authored-by: zeripath <[email protected]>
  • Loading branch information
a1012112796 and zeripath committed Jun 7, 2020
1 parent a076cb2 commit 554a2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/repo/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 554a2b6

Please sign in to comment.