aboutsummaryrefslogtreecommitdiffstats
path: root/services/pull/edits.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/pull/edits.go')
-rw-r--r--services/pull/edits.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/pull/edits.go b/services/pull/edits.go
index 2938f2b108..84f7c80da7 100644
--- a/services/pull/edits.go
+++ b/services/pull/edits.go
@@ -23,7 +23,7 @@ func SetAllowEdits(ctx context.Context, doer *user_model.User, pr *issues_model.
return ErrUserHasNoPermissionForAction
}
- if err := pr.LoadHeadRepo(); err != nil {
+ if err := pr.LoadHeadRepo(ctx); err != nil {
return err
}