mirror of
https://github.com/redmine/redmine.git
synced 2026-05-06 19:37:31 +02:00
scm: fix diffs do not handle one line new files properly (#7618).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4929 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -36,7 +36,7 @@ module Redmine
|
||||
end
|
||||
unless diff_table.add_line line
|
||||
line.force_encoding(line_encoding) if line_encoding
|
||||
self << diff_table if diff_table.length > 1
|
||||
self << diff_table if diff_table.length > 0
|
||||
diff_table = DiffTable.new(diff_type)
|
||||
end
|
||||
lines += 1
|
||||
|
||||
Reference in New Issue
Block a user