summaryrefslogtreecommitdiffstats
path: root/models/repo/update.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo/update.go')
-rw-r--r--models/repo/update.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo/update.go b/models/repo/update.go
index 8dd1097450..f4cb67bb8f 100644
--- a/models/repo/update.go
+++ b/models/repo/update.go
@@ -143,7 +143,7 @@ func ChangeRepositoryName(doer *user_model.User, repo *Repository, newRepoName s
return err
}
- if err := repo.GetOwner(db.DefaultContext); err != nil {
+ if err := repo.LoadOwner(db.DefaultContext); err != nil {
return err
}