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
26a17629acb9
Unverified
Commit
4c43d846
authored
Oct 01, 2015
by
Dmitriy Zaporozhets
Browse files
Fix 500 error on compare page
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
edc1b8f66471
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/helpers/diff_helper.rb
View file @
26a17629
...
...
@@ -170,7 +170,7 @@ def submodule_link(blob, ref, repository = @repository)
def
commit_for_diff
(
diff
)
if
diff
.
deleted_file
@merge_request
?
@merge_request
.
commits
.
last
:
@commit
.
parent
_id
@merge_request
?
@merge_request
.
commits
.
last
:
@commit
.
parent
s
.
first
else
@commit
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