BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
28d57445
Commit
28d57445
authored
Sep 22, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'post_receive_n_plus_1_workaround' into 'master'
Workaround for #38259 See merge request gitlab-org/gitlab-ce!14453
parents
e85e803c
9f71ea0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
push.rb
lib/gitlab/data_builder/push.rb
+5
-2
No files found.
lib/gitlab/data_builder/push.rb
View file @
28d57445
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment