summaryrefslogtreecommitdiffstats
path: root/services/pull/temp_repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/pull/temp_repo.go')
-rw-r--r--services/pull/temp_repo.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/services/pull/temp_repo.go b/services/pull/temp_repo.go
index d49a15cea0..e0d6b4a158 100644
--- a/services/pull/temp_repo.go
+++ b/services/pull/temp_repo.go
@@ -38,12 +38,12 @@ func createTemporaryRepo(ctx context.Context, pr *issues_model.PullRequest) (str
return "", &repo_model.ErrRepoNotExist{
ID: pr.BaseRepoID,
}
- } else if err := pr.HeadRepo.GetOwner(ctx); err != nil {
- log.Error("HeadRepo.GetOwner: %v", err)
- return "", fmt.Errorf("HeadRepo.GetOwner: %w", err)
- } else if err := pr.BaseRepo.GetOwner(ctx); err != nil {
- log.Error("BaseRepo.GetOwner: %v", err)
- return "", fmt.Errorf("BaseRepo.GetOwner: %w", err)
+ } else if err := pr.HeadRepo.LoadOwner(ctx); err != nil {
+ log.Error("HeadRepo.LoadOwner: %v", err)
+ return "", fmt.Errorf("HeadRepo.LoadOwner: %w", err)
+ } else if err := pr.BaseRepo.LoadOwner(ctx); err != nil {
+ log.Error("BaseRepo.LoadOwner: %v", err)
+ return "", fmt.Errorf("BaseRepo.LoadOwner: %w", err)
}
// Clone base repo.