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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
39ada489
Commit
39ada489
authored
Apr 13, 2016
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't attempt to include too large diffs in e-mail-on-push messages
Possible cause of issues in gitlab-org/gitlab-ce#15137
parent
d01168a1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
45 deletions
+49
-45
CHANGELOG-EE
CHANGELOG-EE
+1
-0
app/views/notify/repository_push_email.html.haml
app/views/notify/repository_push_email.html.haml
+29
-28
app/views/notify/repository_push_email.text.haml
app/views/notify/repository_push_email.text.haml
+19
-17
No files found.
CHANGELOG-EE
View file @
39ada489
Please view this file on the master branch, on stable branches it's out of date.
Please view this file on the master branch, on stable branches it's out of date.
v 8.7.0 (unreleased)
v 8.7.0 (unreleased)
- Don't attempt to include too large diffs in e-mail-on-push messages (Stan Hu)
- Update GitLab Pages to 0.2.1: support user-defined 404 pages
- Update GitLab Pages to 0.2.1: support user-defined 404 pages
- Refactor group sync to pull access level logic to its own class. !306
- Refactor group sync to pull access level logic to its own class. !306
- [Elastic] Stabilize database indexer if database is inconsistent
- [Elastic] Stabilize database indexer if database is inconsistent
...
...
app/views/notify/repository_push_email.html.haml
View file @
39ada489
...
@@ -48,6 +48,9 @@
...
@@ -48,6 +48,9 @@
-
unless
@message
.
disable_diffs?
-
unless
@message
.
disable_diffs?
-
diff_files
=
@message
.
diffs
-
diff_files
=
@message
.
diffs
-
if
@message
.
compare_timeout
%h5
The diff was not included because it is too large.
-
else
%h4
Changes:
%h4
Changes:
-
diff_files
.
each_with_index
do
|
diff_file
,
i
|
-
diff_files
.
each_with_index
do
|
diff_file
,
i
|
%li
{
id:
"diff-#{i}"
}
%li
{
id:
"diff-#{i}"
}
...
@@ -76,5 +79,3 @@
...
@@ -76,5 +79,3 @@
No preview for this file type
No preview for this file type
%br
%br
-
if
@message
.
compare_timeout
%h5
Huge diff. To prevent performance issues changes are hidden
app/views/notify/repository_push_email.text.haml
View file @
39ada489
...
@@ -25,6 +25,11 @@
...
@@ -25,6 +25,11 @@
-
else
-
else
\-
#{
diff
.
new_path
}
\-
#{
diff
.
new_path
}
-
unless
@message
.
disable_diffs?
-
unless
@message
.
disable_diffs?
-
if
@message
.
compare_timeout
\
\
The diff was not included because it is too large.
-
else
\
\
\
\
Changes:
Changes:
...
@@ -39,10 +44,7 @@
...
@@ -39,10 +44,7 @@
=
diff_file
.
new_path
=
diff_file
.
new_path
\=====================================
\=====================================
!=
diff_file
.
diff
.
diff
!=
diff_file
.
diff
.
diff
-
if
@message
.
compare_timeout
\
\
Huge diff. To prevent performance issues it was hidden
-
if
@message
.
target_url
-
if
@message
.
target_url
\
\
\
\
...
...
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