[refs #90] fixed rendering diff

This commit is contained in:
Alexander Machehin 2012-10-15 21:24:29 +06:00
parent 8c7ac11ec7
commit a7a442c4e1
1 changed files with 2 additions and 1 deletions

View File

@ -6,4 +6,5 @@
- if pull_diff.b_path.present?
.r= link_to "view file @ #{short_hash_id(commit_id)}", blob_path(@project, commit_id, pull_diff.b_path)
.clear
.diff_data= render_diff(pull_diff, pull_diff_counter) unless (Grit::Repo.new(@pull.path).tree(commit_id) / pull_diff.b_path).binary?
-if pull_diff.diff.present? && !(Grit::Repo.new(@pull.path).tree(commit_id) / pull_diff.b_path).binary?
.diff_data= render_diff(pull_diff, pull_diff_counter)