Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
4d5f9cd5675f
Commit
b6233917
authored
Sep 25, 2015
by
Dmitriy Zaporozhets
Browse files
Merge branch 'stanhu/gitlab-ce-fix-mr-creation-with-large-diffs'
parents
7ca280a1ddf4
a1d57df13532
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
4d5f9cd5
...
...
@@ -2,6 +2,7 @@ Please view this file on the master branch, on stable branches it's out of date.
v 8.1.0 (unreleased)
- Fix bug where projects would appear to be stuck in the forked import state (Stan Hu)
- Fix Error 500 in creating merge requests with > 1000 diffs (Stan Hu)
- Show CI status on all pages where commits list is rendered
- Automatically enable CI when push .gitlab-ci.yml file to repository
- Move CI charts to project graphs area
...
...
app/models/merge_request_diff.rb
View file @
4d5f9cd5
...
...
@@ -123,12 +123,12 @@ def reload_diffs
if
new_diffs
.
any?
if
new_diffs
.
size
>
Commit
::
DIFF_HARD_LIMIT_FILES
self
.
state
=
:overflow_diff_files_limit
new_diffs
=
new_diffs
.
first
[
Commit
::
DIFF_HARD_LIMIT_LINES
]
new_diffs
=
new_diffs
.
first
(
Commit
::
DIFF_HARD_LIMIT_LINES
)
end
if
new_diffs
.
sum
{
|
diff
|
diff
.
diff
.
lines
.
count
}
>
Commit
::
DIFF_HARD_LIMIT_LINES
self
.
state
=
:overflow_diff_lines_limit
new_diffs
=
new_diffs
.
first
[
Commit
::
DIFF_HARD_LIMIT_LINES
]
new_diffs
=
new_diffs
.
first
(
Commit
::
DIFF_HARD_LIMIT_LINES
)
end
end
...
...
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