Fix 500 error on diff if file permission changed

This commit is contained in:
Dmitriy Zaporozhets 2014-09-23 16:13:03 +03:00
parent e586ee347f
commit b897cc63a5

View file

@ -12,7 +12,7 @@
- else
%span= diff_file.new_path
- if diff_file.mode_changed?
%span.file-mode= "#{diff.a_mode} → #{diff.b_mode}"
%span.file-mode= "#{diff_file.diff.a_mode} → #{diff_file.diff.b_mode}"
.diff-btn-group
- unless params[:view] == 'parallel'