summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-19 20:11:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-19 20:11:44 +0000
commite219af1fbd96a069b46443202fef9fab1a51bd38 (patch)
tree89dc59038068248fb2672be44c3aeeff30c7c198 /lib
parent4a2efa9252baebcdaa03587c674fec20ed2214ad (diff)
downloadredmine-e219af1fbd96a069b46443202fef9fab1a51bd38.tar.gz
redmine-e219af1fbd96a069b46443202fef9fab1a51bd38.zip
Ignore empty diffs.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1014 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb
index c93fc6350..138d7e647 100644
--- a/lib/redmine/scm/adapters/abstract_adapter.rb
+++ b/lib/redmine/scm/adapters/abstract_adapter.rb
@@ -237,7 +237,8 @@ module Redmine
end
a = diff_table.add_line line
end
- self << diff_table
+ self << diff_table unless diff_table.empty?
+ self
end
end