Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
9f71ea0d
Commit
9f71ea0d
authored
Sep 22, 2017
by
Andrew Newdigate
Committed by
Robert Speicher
Sep 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround for #38259
parent
e85e803c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lib/gitlab/data_builder/push.rb
lib/gitlab/data_builder/push.rb
+5
-2
No files found.
lib/gitlab/data_builder/push.rb
View file @
9f71ea0d
...
...
@@ -64,9 +64,12 @@ module Gitlab
# For performance purposes maximum 20 latest commits
# will be passed as post receive hook data.
commit_attrs
=
commits_limited
.
map
do
|
commit
|
# 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