Skip to content
Snippets Groups Projects
Commit 9f71ea0d authored by Andrew Newdigate's avatar Andrew Newdigate Committed by Robert Speicher
Browse files

Workaround for #38259

parent e85e803c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -64,8 +64,11 @@ module Gitlab
 
# For performance purposes maximum 20 latest commits
# will be passed as post receive hook data.
commit_attrs = commits_limited.map do |commit|
commit.hook_attrs(with_changed_files: true)
# n+1: https://gitlab.com/gitlab-org/gitlab-ce/issues/38259
commit_attrs = Gitlab::GitalyClient.allow_n_plus_1_calls do
commits_limited.map do |commit|
commit.hook_attrs(with_changed_files: true)
end
end
 
type = Gitlab::Git.tag_ref?(ref) ? 'tag_push' : 'push'
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment